input: Write a function to generate and print the Fibonacci sequence of the first n numbers. The function should take an integer n as input, and print the first n Fibonacci numbers. If n is less than 1, the function should print "Invalid input".
  assert Fibonacci(5)
  assert Fibonacci(1)
  assert Fibonacci(-1)
  assert Fibonacci(0)
output: def Fibonacci(n):
      if n < 1:
          print("Invalid input")
          return
      a, b = 0, 1
      for _ in range(n):
          print(a, end=' ')
          a, b = b, a + b
      print()