while True:
  H, W = map(int, input().split())
  if H == 0 and W == 0:
    break
  else:
    for r in range(H):
      for c in range(W):
        if (r + c) % 2:
          print('.', end = '')
        else:
          print('#', end = '')
      print()
  print()
