#include <bits/stdc++.h>
using namespace std;
int a[201],b[201],c[202];
string x,y;
int main()
{
cin>>x>>y;
for(int i=x.size(); i>=0; i--) a[x.size()-i]=x[i]-'0';
for(int i=y.size(); i>=0; i--) b[y.size()-i]=y[i]-'0';
int i=1,k=0;
while((i<=x.size())||(i<=y.size()))
{
c[i]=a[i]+b[i]+k;
k=c[i]/10;
c[i]%=10;
i++;
}
c[i]=k;
while(c[i]==0)
i--;
for(int j=i; j>0; j--) cout<<c[j];
return 0;
}