input: 
  def fibonacci(n: int) -> List[int]:
      """ Generate a list of Fibonacci numbers up to a given number n.
      >>> fibonacci(10)
      [1, 1, 2, 3, 5, 8]
      >>> fibonacci(1)
      []
      >>> fibonacci(-5)
      []
      """
      if n <= 0:
          return []
      series = [1, 1]
      while True:
          next_value = series[-1] + series[-2]
          if next_value > n:
              break
          series.append(next_value)
      return series
  
  n = int(input("Enter a number: "))
  print(fibonacci(n))
  
output:     if n <= 0:
          return []
      series = [1, 1]
      while True:
          next_value = series[-1] + series[-2]
          if next_value > n:
              break
          series.append(next_value)
      return series