#include<stdio.h>
int main() {
    int firstReactant,secondReactant;
    if (scanf("%d",&firstReactant) != 1) {
        printf("Invalid input");
        return 0;
    }
    if (scanf("%d",&secondReactant) != 1) 
        printf("Invaliid input");
        return 0;
    }
    if (firstReactant <- 1000 || firstReactant > 1000 || secondReactant <- 1000 || secondReactant >1000) {
        printf("Invalid input");
        return 0;
    }
    int total_mass = firstReactant + secondReactant;
    
    printf("%d", total_mass);
    
    return 0;
}