include[HTML_REMOVED]
using namespace std;
vector[HTML_REMOVED]A,B,C;
vector[HTML_REMOVED] add(vector[HTML_REMOVED]A,vector[HTML_REMOVED]B) {
if(A.size()<B.size()) return add(B,A);
int t = 0;
for(int i = 0;i<A.size();i++){
if(i<B.size())
t = t + A[i]+B[i];
else
t = t + A[i];
C.push_back(t%10);
t = t/10;
}
if(t!=0) C.push_back(t);
}
int main(){
string a,b;
cin>>a>>b;
for(int i = 0;i<a.size();i++) A.push_back(a[a.size()-1-i]-'0');
for(int i = 0;i<b.size();i++) B.push_back(b[b.size()-1-i]-'0');
add(A,B);
for(int i = 0;i<C.size();i++){
cout<<C[C.size()-i-1];
}
return 0;
}