while True:
    H, W = map(int, input().split())
    if H == W == 0:
        break
    line = '#.' * (W // 2 + 1)
    for i in range(H):
        if i % 2:
            print(line[1:W+1])
        else:
            print(line[:W])
    print()
