from itertools import product

while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break

    for i in range(h):
        for j in range(w):
            print('#.'[(i + j) % 2], end='')
        print()
    print()


