while True:
    h,w = map(int, input().split())
    if h==w==0:break
    for y in range(h):
        for x in range(1,w+1):
            if ((x+y)%2)==0:prnt('#',end())
            else print('.',end())
        print()
    print()