Checkerboard


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types

Given two positive integers m and n, print an m x n checkerboard using * and . characters. Row and column indices start from 1.

Input

  • One line containing two positive integers m and n.

Output

  • Print * if the sum of the row index and column index is even; otherwise print ..

Constraints

  • 1 <= m, n <= 100

Example

Input
4 6
Output
*.*.*.
.*.*.*
*.*.*.
.*.*.*

Comments

There are no comments at the moment.