while 1:
  H, W = map(int, input().split())
  if H == W == 0: break
  for h in range(H):
    s = ""
    for w in range(W):
      if (h + w) % 2 == 0: s += "#"
      else: s += "."
    print(s)
  print("")
