while True:
  H, W = list(map(int, input().split()))
  if H == 0 and W == 0:
    break
  else:
    for i in range(H):
      if i % 2 == 0:
        print(('#.' * 150)[:W])
      else:
        print(('.#' * 150)[:W])
    print()
