S = list(map(int, open(0).read().split()))[:-2]
for h, w in zip(*[iter(S)]*2):
    for i in range(h):
        if i & 1:
            print(('.#'*w)[:w])
        else:
            print(('#.'*w)[:w])
    print()
