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