Rosetta Problems

お菓子の箱

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/63