import itertools as it
while True:
    h, w = map(int, input().split())
    if h == w == 0: break;
    for i in range(h):
        s = '#.' if i % 2 == 0 else '.#'
        print(''.join(it.islice(it.cycle(s), w)))
    print()

