Rosetta Problems

Loop of Chocolate

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