import java.util.Scanner;

public class Main{
    static void findSum(int a, int b){
        if(a<0 || b<0){
            System.out.print(a+b);
        }
        else if(a+b > Integer.MAX_VALUE+1){
            System.out.println("Overflow detected");
        }
        else if(a+b < Integer.MIN_VALUE){
            System.out.println("Overflow detected");
        }
        else{
            System.out.println(a+b);
        }
    }
    
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        if(!sc.hasNextInt()){
            System.out.println("Invalid input");
            return;
        }
        long a = sc.nextInt();
        if(!sc.hasNextInt()){
            System.out.println("Invalid input");
            return;
        }
        long b = sc.nextInt();
        if(a>Integer.MAX_VALUE && b>Integer.MAX_VALUE) {
            System.out.print(a+b);
            return;
        }
        findSum(a,b);
        sc.close();
    }
}