Basic Diplomacy

medium
https://codeforces.com/problemset/problem/1482/C

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Example

Input

        
Output

        
Previous
Tennis Championship
Next
Yet Another Array Partitioning Task

Related Questions