Crazy Diamond

easy
https://codeforces.com/problemset/problem/1148/C

Input Format

check the link

Output Format

check the link

Constraints

check the link

Notice

check the link

Example

Input

        
Output

        
Previous
Palindromic Matrix
Next
Reading Books

Related Questions