Rosetta Problems

おせんべい

https://atcoder.jp/contests/joi2008yo/tasks/joi2008yo_e