while True:
    (H, W) = [int(i) for i in input().split()]
    
    if H == W == 0:
        break
    for chess in range(H):
        print(''.join('#.'[(x + chess) % 2] for x in range(W)))
    print()
