#include <iostream>#include <algorithm>#include <cstdio>#include <cstring>#include <cmath>#include <iomanip>#include <vector>
using namespace std;
int main(){
string a,b;
vector<int>res;
cin>>a>>b;
reverse(a.begin(),a.end());
reverse(b.begin(),b.end());
int t =0;for(int i =0; i < a.size()|| i < b.size(); ++i){if(i < a.size()) t += a[i] - '0';if(i < b.size()) t += b[i] - '0';
res.push_back(t % 10);
t /=10;}if(t) res.push_back(1);for(int i = res.size() - 1; i >=0; --i){
cout<<res[i];}}