Rosetta Problems

JOO PIPI

https://oj.vnoi.info/problem/c11pipi