Rosetta Problems

Free Contest 13 - WEALTHY

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