Rosetta Problems

Free Contest 35 - RATIONAL

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