#include <bits/stdc++.h>
using namespace std;

int main() {
    string a, b;
    stack<int>s;
    while (cin >> a >> b) { // 注意 while 处理多个 case
        int jin_wei=0,re;
        for(int i=0;i<max(a.length(),b.length());i++){
            re=jin_wei;
            if(a.length()>i)
                re+=a[a.length()-i-1]-'0';
            if(b.length()>i)
                re+=b[b.length()-i-1]-'0';
            jin_wei=re/10;
            s.push(re%10);
        }        
        // 输出
        if(jin_wei)
            cout<<jin_wei;
        while(!s.empty()){
            cout<<s.top();
            s.pop();
        }
        cout<<endl;
    }
}
// 64 位输出请用 printf("%lld")