while True:
    H,W=map(int, input().split())
    if H==0 and W==0:break
    else:
        for h in range(H):
            for w in range(W):
                print('#.'[(w+h)&1],end='')
            print()
        print()
