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