Circle Game

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

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Example

Input

        
Output

        
Previous
Permutation Game
Next
Madmax

Related Questions