#include <iostream>
#include <string>
using namespace std;
int main(void)
{
string a, b;
cin >> a >> b;
string result(max(a.length(), b.length()), '0');
int key = 0;
for (int i = 0; i < result.length(); i++)
{
int sum = key;
key = 0;
if (i < a.size())
sum += a[a.length() - i - 1] - '0';
if (i < b.size())
sum += b[b.length() - i - 1] - '0';
if (sum > 9)
{
key = 1;
sum -= 10;
}
result[result.length() - i - 1] = sum + '0';
}
if (key)
cout << 1;
cout << result;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKHZvaWQpCnsKCXN0cmluZyBhLCBiOwoKCWNpbiA+PiBhID4+IGI7CglzdHJpbmcgcmVzdWx0KG1heChhLmxlbmd0aCgpLCBiLmxlbmd0aCgpKSwgJzAnKTsKCWludCBrZXkgPSAwOwoKCWZvciAoaW50IGkgPSAwOyBpIDwgcmVzdWx0Lmxlbmd0aCgpOyBpKyspCgl7CgkJaW50IHN1bSA9IGtleTsKCQlrZXkgPSAwOwoKCQlpZiAoaSA8IGEuc2l6ZSgpKQoJCQlzdW0gKz0gYVthLmxlbmd0aCgpIC0gaSAtIDFdIC0gJzAnOwoKCQlpZiAoaSA8IGIuc2l6ZSgpKQoJCQlzdW0gKz0gYltiLmxlbmd0aCgpIC0gaSAtIDFdIC0gJzAnOwoJCQoJCWlmIChzdW0gPiA5KQoJCXsKCQkJa2V5ID0gMTsKCQkJc3VtIC09IDEwOwoJCX0KCQkKCQlyZXN1bHRbcmVzdWx0Lmxlbmd0aCgpIC0gaSAtIDFdID0gc3VtICsgJzAnOwoJfQoJaWYgKGtleSkKCQljb3V0IDw8IDE7Cgljb3V0IDw8IHJlc3VsdDsKCiAgICByZXR1cm4gMDsKfQ==