#include<bits/stdc++.h>
using namespace std;
int main()
{
string a,b;
cin>>a>>b;
vector<int>A;
vector<int>B;
int m = a.size();
int n = b.size();
for(int i = 0;i<m;i++) A.push_back(a[i]-'0');
for(int i = 0;i<n;i++) B.push_back(b[i]-'0');
vector<int>C;
int k=0;//进位
int i=0,j=0;
for(i=m-1,j=n-1;i>=0&&j>=0;i--,j--)
{
int sum=0;
sum+=A[i]+B[j]+k;
C.push_back(sum%10);
k = sum/10;
}
if(i==-1&&j==-1&&k!=0) C.push_back(k);
while(i>=0)
{
int sum=0;
sum+=A[i]+k;
C.push_back(sum%10);
k = sum/10;
i--;
if(i==-1&&k!=0) C.push_back(k);
}
while(j>=0)
{
int sum=0;
sum+=B[j]+k;
C.push_back(sum%10);
k = sum/10;
j--;
if(j==-1&&k!=0) C.push_back(k);
}
for(i=C.size()-1;i>=0;i--)
{
cout<<C[i];
}
return 0;
}