input: 
  import java.util.Scanner;
  
  class Sum {
      public static void main(String[] args) {
          Scanner sc = new Scanner(System.in);
          int x = sc.nextInt();
          int y = sc.nextInt();
          Sum obj = new Sum();
          System.out.println(obj.sum(x, y));
      }
  
      public int sum(int a, int b) {
          return a + b;
      }
  }
  
  
  
  def sum(a, b):
      """ Port the Java code to Python that takes two integers as input and returns their sum.
      Example:
      for sum(3, 4) == 7
      for sum(-1, 1) == 0
      """
      return a + b
  
output:     
  def sum(a, b):
      """ Port the Java code to Python that takes two integers as input and returns their sum.
      Example:
      for sum(3, 4) == 7
      for sum(-1, 1) == 0
      """
      return a + b
  