Rosetta Problems

The Secret Number

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