Cows And Sequences

easy
https://codeforces.com/problemset/problem/283/A

Input Format

check the link

Output Format

check the link

Constraints

check the link

Notice

check the link

Example

Input

        
Output

        
Previous
Messy
Next
Anya And Smartphone

Related Questions