Rosetta Problems

東雲なのの憂鬱

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