while True:
    H, W = map(int, input().split())

    if H == W == 0:
        break

    for i in range(H):
        for j in range(W):
            ch = '#' if (i+j)%2 == 0 else '.'
            print(ch, end='')
        print()

    print()

