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