li = [0, 0]
while True:
    H, W = map(int, input().split())
    if H == W == 0:
        break
    li[0] = ("#." * W)[:W]
    li[1] = (".#" * W)[:W]
    for i in range(H):
        print(li[i % 2])
    print("")
