Rosetta Problems

Meet on the Island

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