#include <cstdio>
#include <vector>

#define MAX 100000000
#define MIN 0

using namespace std;

int main() {
    int i,j;
    int a,b;
    int buf = 0;
    vector<int> sum;
    vector<int> digit;
    
    while(scanf("%d %d",&a, &b) != EOF) {
        if((a < MIN) || (b > MAX)) {
            continue;
        }
        
        sum.push_back((a + b));
    }
    
    for(i = 0; i < sum.size(); ++i) {
        j = MAX;
        
        while(j >= MIN) {
            buf += ((sum.at(i) / j) * j);
            j /= 10;
        }
        
        digit.push_back(buf);
    }
    
    for(i = 0; i < digit.size(); ++i) {
        printf("%d\n",digit.at(i));
    }
    
    return 0;
}