while True:
    
    H, W = [int(i) for i in input().split()]
        
    for a in range(H):
        for b in range(W):
             if a % 2 == 0 or b % 2 == 0:
                  print('#', end='')
             else:
                  print('.', end='')
        print()
    print()
         