From Modular to Rational

Problem Name:
From Modular to Rational
Site:CodeForces
Links:
Tags:
Problem setters: