while 1:
  h, w = map(int, raw_input().split())
  if h == w == 0:
    break
  half_w = int(w / 2)
  for i in range(h):
    if i % 2 == 0:
      print "#." * half_w
    else:
      print ".#" * half_w
  print ""