Rosetta Problems

Ribbon on the Christmas Present

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