#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
int a, b;
while (cin >> a >> b) {
string s1 = to_string(a);
string s2 = to_string(b);
reverse(s1.begin(), s1.end());
reverse(s2.begin(), s2.end());
a = stoi(s1);
b = stoi(s2);
string s = to_string(a + b);
reverse(s.begin(), s.end());
int add = stoi(s);
cout << add << endl;
}
}

京公网安备 11010502036488号