import java.util.*;
class Sum{
    void cal(){
        Scanner s = new Scanner(System.in);
        if(s.hasNextInt()){
        long a = s.nextLong();
        long b = s.nextLong();
            if(a >= -32768 && a <= 32767 && b >= -32768 && b <= 32767){
                int c = a + b;
                System.out.println(c);
            }
            else{
                System.out.println("Invalid input");
            }
        }
        else{
            System.out.println("Invalid input");
        }
    }
    public static void main(String args[]){
        Sum ob = new Sum();
        ob.cal();
    }
}