while True:
    H, W = (int(x) for x in input().split())
    if(H == 0 and W == 0): break
    for h in range(H):
        for w in range(W):
            if ((h + w) % 2 == 0): print("#", end="")
            else: print(".", end="")
        print()
    print()
