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