Rosetta Problems

Free Contest 126 - K-NUMBER

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