#include<stdio.h>
int main()
{
char word1[10000] = {0}, word2[10000] = {0};
int number[10000] = {0}, top=0;
int i, j, x, y, s=0, k=0;
int a,v, b;
scanf("%s %s", word1, word2);
x = strlen(word1)-1;
y = strlen(word2)-1;
for(;;)
{
if(x<0 || y<0)
{
break;
}
a = word1[x]-'0';
b = word2[y]-'0';
x--;
y--;
s = (a+b+k);
k = s/10;
number[top++] = s%10;
}
if(x>0)
{
for(; x>=0;)
{
a = word1[x]-'0';
x--;
s=(a+k);
k=s/10;
number[top++] = s %10;
}
}
else if(y>0)
{
for(; y>=0;)
{
b = word2[y]-'0';
y--;
s=(b+k);
k=s / 10;
number[top++] = s %10;
}
}
else {if(k!=0) number[top++] = k;
}
for(; top>0;)
{
printf("%d", number[top-1]);
top--;
}
}



