import sys

for line in sys.stdin:
    h, w = map(int, line.strip().split())
    if h == 0 and w == 0:
        break

    for row in range(h):
        print(''.join(['#', '.'][(row + line) % 2] for line in range(w)))

    print()

