while True:
 H,W = list(map(int, input().split() ))
 if H==0 and W==0:
  break
 for r in range(H):
  for c in range(W):
   if (r+c)%2 == 0:
    print("#",end="")
   else:
    print(".",end="")
  print()
 print()


