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