input: 
  def fibonacci(n: int) -> None:
      """Prints the Fibonacci series up to the given number n.
  
      >>> fibonacci(5)
      [0, 1, 1, 2, 3]
      >>> fibonacci(0)
      []
      >>> fibonacci(-1)
      Incorrect input
      >>> fibonacci(1)
      [0]
      >>> fibonacci(2)
      [0, 1]
      """
      if n < 0:
          print("Incorrect input")
          return
  
      result = [0] if n > 0 else []
      a, b = 0, 1
      while b <= n:
          result.append(b)
          a, b = b, a + b
      
      print(result)
  
  n = int(input("Enter a number: "))
  fibonacci(n)
  
output:     
      if n < 0:
          print("Incorrect input")
          return
  
      result = [0] if n > 0 else []
      a, b = 0, 1
      while b <= n:
          result.append(b)
          a, b = b, a + b
      
      print(result)
  