Rosetta Problems

Free Contest 143 - COINS

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