#include <bits/stdc++.h>
using namespace std;
string a, b;
string jia(string a, string b)
{
reverse(a.begin(), a.end());
reverse(b.begin(), b.end());
while (a.size() > b.size())
b.push_back('0');
string ans = "";
int jw = 0;
for (int i = 0; i < a.size(); i++)
{
int sum = a[i] + b[i] - 96 + jw;
jw = sum / 10;
ans.push_back(sum % 10 + '0');
}
if (jw)
ans.push_back('1');
while (ans.back() == '0')
ans.pop_back();
reverse(ans.begin(), ans.end());
return ans;
}
int main()
{
cin >> a >> b;
if (a.size() < b.size())
swap(a, b);
cout << jia(a, b);
return 0;
}