input: from typing import List
  
  
  def foo(a: int, b: int) -> int:
      """ Port the Java method to Python 3.
      The Java method "foo" takes two integers as parameters and returns their sum.
  
      >>> foo(2, 3)
      5
      >>> foo(0, -1)
      -1
      """
output:     return a + b