Rosetta Problems

And Then There Was One

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