import java.util.*;
public class main{
    public static void main(String[] args){
     try{
     Scanner sc=new Scanner(System.in);
     int a=sc.nextInt();
     int b=sc.nextInt();
     if(a<=Integer.MIN_VALUE || b<=Integer.MIN_VALUE || a>=Integer.MAX_VALUE || b>=Integer.MAX_VALUE || c>=Integer.MAX_VALUE || c<=Integer.MIN_VALUE){
         System.out.println("Overflow detected");
         return;
     }
     else{
         int c=a+b;
         System.out.println(c);
     }
     }
     catch(Exception e){
         System.out.println("Invalid input");
         return;
     }
    }
}