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