while True:
  H,W = map(int, input().split())
  if H == 0 and W == 0:
    break
    
  if i in range(round(H/2)):
    print(("#"+".")*round(W/2))
    
  if i in range(int(H/2)):
    print(("."+"#")*round(W/2))    
