Rosetta Problems

Long Sequence

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