#include <stdio.h>
int main()
{
    int first reactant,second reactant;
    if(scanf("%d%d",&first reactant,&second reactant)!=2)
    {
        printf("invalid input");
        return 0;
    }
    if (first reactant<0  || second reactant<0||first reactant>1000 ||second reactant>1000)
    {
        printf("invalid input");
    }
    else
    {
        int total mass =first reactant+second reactant;
        printf("%d",total mass);
    }
    return 0;
}