Bicycle Race

easy
https://codeforces.com/problemset/problem/659/D

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Example

Input

        
Output

        
Previous
Polygon Lattice Points
Next
Gerald's Hexagon

Related Questions