Rosetta Problems

おつかい

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