import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
            long a = sc.nextLong();  
            long b = sc.nextLong();
            if (a < Integer.MIN_VALUE || a > Integer.MAX_VALUE ||
                b < Integer.MIN_VALUE || b > Integer.MAX_VALUE) {
                System.out.println("Invalid input");
                return;
            }
            long sum = a + b;
            if(a<-2^31 || b<-2^31)
            {
                 System.out.println("Invalid input");
                return;
            }
            else if  (sum < Integer.MIN_VALUE || sum > Integer.MAX_VALUE) {
                System.out.println("Overflow detected");
            } else {
                System.out.println(sum);
            }
    }
}
