#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define str string
#define pb push_back
#define fi first
#define se second

const ll limit = 1e5 + 5;
const ll mod = 1e9 + 7;

str sum(str a, str b){
    while(a.length() < b.length()) a = '0' + a;
    while(a.length() > b.length()) b = '0' + b;

    str ans = "";
    int cur = 0, tmp = 0;
    for(int i = a.length() - 1; i >= 0; i--){
        tmp = a[i] - '0' + b[i] - '0' + cur;
        if(tmp >= 10){
            tmp -= 10;
            cur = 1;
        }
        ans = ans + char(tmp + '0');
    }
    if(cur > 0) ans = '1' + ans;
    return ans;
}

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    
    str a, b, c;
    cin >> a >> b >> c;
    cout << sum(sum(a, b), c);

    return 0;
}