Aquamoon And Chess

easy
https://codeforces.com/contest/1546/problem/D

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Notice

Check the link

Example

Input

        
Output

        
Previous
Social Circles
Next
Position In Fraction

Related Questions