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

