Rosetta Problems

Free Contest 87 - DIGITS

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