Rosetta Problems

カンガルー

https://atcoder.jp/contests/joisc2012/tasks/joisc2012_kangaroo