大整数
using namespace std;
#include <cstring>
int main() {
char s1[2500];
char s2[2500];
while (cin >> s1 && cin >> s2) {
int num[2500];
int acc = 0;
for (int i = strlen(s1) - 1; i >= 0; i--) {
int x = s1[i] - '0' + s2[i] - '0';
if (x >= 10) {
num[acc++] = x - 10;
if (i != 0)
++s1[i - 1];
else
num[acc++] = 1;
} else {
num[acc++] = x;
}
}
for (int i = acc - 1; i >= 0; i--) {
cout << num[i];
}
cout << endl;
}
return 0;
}