Repaintings

easy
https://codeforces.com/problemset/problem/40/B

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Notice

Check the link

Example

Input

        
Output

        
Previous
Rectangle Puzzle 2
Next
About Bacteria

Related Questions