while True:
  h,w=map(int,input().split())

  if h==w==0:
    break

  elif h==w==1:
    print("#")

  else:
    for i in range(h):
      if i%2==0:
        print("#."*(w-2))
      else:
        print(".#"*(w-2))


