while 1:
    h,w = map(int,input().split())
    if h == 0 and w == 0:
        break

    odd = '#.' * 150
    even = '.#' * 150

    for i in range(h):
        if i%2 == 0:
            print(odd[:w])
        else:
            print(even[:w])
    print()