while True:
    H, W = map(int, input().split())
    if H == 0 and W == 0: break
    h = int(H/2)
    for i in range(0,H) :
        if(W%2 ==0):
            print('#.'*h)
        else:
            print('#' + '.#'*h)
        
        
    print()
