input: from typing import List
  
  def Fibonacci(n: int) -> List[int]:
      """ Calculate the Fibonacci numbers up to a given number n.
      >>> Fibonacci(0)
      [0]
      >>> Fibonacci(1)
      [0, 1]
      >>> Fibonacci(5)
      [0, 1, 1, 2, 3, 5]
      """
      if n < 0:
          return []
      a, b = 0, 1
      result = [0]
      while b <= n:
          result.append(b)
          a, b = b, a + b
      return result
output:     if n < 0:
          return []
      a, b = 0, 1
      result = [0]
      while b <= n:
          result.append(b)
          a, b = b, a + b
      return result