Rosetta Problems

The Balance of the World

https://onlinejudge.u-aizu.ac.jp/problems/1173