Rosetta Problems

Three Kingdoms of Bourdelot

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