Rosetta Problems

Tokaido

https://atcoder.jp/contests/cf16-final/tasks/codefestival_2016_final_h