#include <bits/stdc++.h>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
char s1[220],s2[220];
int a[220],b[220],c[220],la,lb,lc;
int main(int argc, char** argv) {
cin>>s1>>s2;
la=strlen(s1);
lb=strlen(s2);
for(int i=0;i<la;i++)
a[la-i]=s1[i]-'0';
for(int i=0;i<lb;i++)
b[lb-i]=s2[i]-'0';
lc=max(la,lb)+1;
for(int i=1;i<=lc;i++){
c[i]+=a[i]+b[i];
c[i+1]=c[i]/10;
c[i]=c[i]%10;
}
while(lc>1&&c[lc]==0){
lc--;
}
for(int i=lc;i>0;i--)
cout<<c[i];
cout<<endl;
return 0;
}