Rosetta Problems

Free Contest 27 - SIMPLICITY

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