Rosetta Problems

Free Contest 57 - KNUMBER

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