while True:
    h, w = [int(i) for i in input().split()]
    if w == h == 0:
        break
    
    for i in range(h):
        for j in range(w):
            print("#" if (i + j) % 2 == 0 else ".", end="")
        print()
    print()

