Rosetta Problems

Treasure Pleasure

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