Rosetta Problems

Villa of Emblem Shape

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