while True:
    H,W = map(int,input().split())
    if H == W == 0:
        break
    for h in range(H):
        if h % 2 == 0:
            line = "#."*(W//2+1)
        else:
            line = ".#"*(W//2+1)
        print("".join(line[:W]))
    print("")
