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