Mirko has become a hardcore patriot, so he has asked you to draw him a Croatian chessboard (checkerboard).
The chessboard consists of red and white cells. The upper left cell is red, with the remaining cells
alternating between white and red in rows as well as columns. We will represent red areas with X
characters, and white areas with .
characters.
Mirko's chessboard should consist of
Input Specification
The first line of input contains two positive integers
The second line of input contains two positive integers
Output Specification
The output must consist of a total of
Sample Input 1
2 4
2 2
Sample Output 1
XX..XX..
XX..XX..
..XX..XX
..XX..XX
Sample Input 2
5 5
2 3
Sample Output 2
XXX...XXX...XXX
XXX...XXX...XXX
...XXX...XXX...
...XXX...XXX...
XXX...XXX...XXX
XXX...XXX...XXX
...XXX...XXX...
...XXX...XXX...
XXX...XXX...XXX
XXX...XXX...XXX
Comments