Rosetta Problems

お菓子

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