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

