<reponame>BenyaminZojaji/Python-Assignments<filename>Assignment04/1_chessBoard.py
n, m = map(int, input().split())
for i in range(n):
    for j in range(m):
        if (i+j)%2==0:
            print('#', end='')
        else:
            print('*', end='')
    print('\n')

n, m = map(int, input().split())
for i in range(n):
    for j in range(m):
        if (i+j)%2==0:
            print('#', end='')
        else:
            print('*', end='')
    print('\n')