while True:
    H, W = map(int, input().split())
    if H == W == 0:
        break
    frame = [['#' if ( abs(i-j) %2 ==0) else '.' for i in range(W)] for j in range(H)]
    print('\n'.join([''.join(frame[j]) for j in range(H)]))
    print()
