while(True):
    H,W = map(int, input().split())
    if(H==0 and W == 0): exit()
    for i in range(H):
        for j in range(W):
             print("#", end="") if( (i+j)%2 == 0) else print(".", end="")
        print("")
    print("")
