#include <string>
#include <cmath>
using namespace std;
int rev(int n) {
int res = 0;
while (n!= 0) {
res = res * 10 + n%10; //求余取末位
n = n / 10;
}
return res;
}
int main()
{
int x, y;
cin >> x >> y;
cout<<rev(rev(x) + rev(y));
return 0;
}