#include<iostream>
using namespace std;

int main(){
    long tmp,sum;
    while(cin>>tmp){
        sum = 0;
        while(true){
            sum+=tmp;
            if(cin.get()=='\n')break;
            cin>>tmp;
        }
        cout<<sum<<endl;
    }
}