Rosetta Problems

SNNNNNNNNNNNNNNN

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