Rosetta Problems

Revenge of the Round Table

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