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