Rosetta Problems

Train

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