Rosetta Problems

Free Contest 138 - FRACTION

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