Bicolored Rbs

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

Input Format

check the link

Output Format

check the link

Constraints

check the link

Notice

check the link

Example

Input

        
Output

        
Previous
New Year Book Reading
Next
Hometask

Related Questions