Position In Fraction

easy
https://codeforces.com/problemset/problem/900/B

Input Format

check the link

Output Format

check the link

Constraints

check the link

Notice

check the link

Example

Input

        
Output

        
Previous
Aquamoon And Chess
Next
Row Gcd

Related Questions