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

