input: from typing import List
  
  
  def Fibonacci(n: int) -> List[int]:
      """
      Calculate the Fibonacci numbers up to the given number n and return a list of Fibonacci numbers.
      >>> Fibonacci(5)
      [0, 1, 1, 2, 3, 5]
      >>> Fibonacci(0)
      [0]
      >>> Fibonacci(1)
      [0, 1]
      """
      if n < 0:
          raise ValueError("Input should be a non-negative integer")
      fib_sequence = [0, 1]
      while fib_sequence[-1] <= n:
          next_fib = fib_sequence[-1] + fib_sequence[-2]
          if next_fib > n:
              break
          fib_sequence.append(next_fib)
      return fib_sequence
output:     if n < 0:
          raise ValueError("Input should be a non-negative integer")
      fib_sequence = [0, 1]
      while fib_sequence[-1] <= n:
          next_fib = fib_sequence[-1] + fib_sequence[-2]
          if next_fib > n:
              break
          fib_sequence.append(next_fib)
      return fib_sequence