#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <vector>
#include <queue>
#include <map>
#include <sstream>
#include <algorithm>
#include <cstdlib>
using namespace std;
int main(){
// 使用 stringstream
string sinput;
while (getline(cin,sinput)){
stringstream ss;
ss << sinput;
long long tmp,ans=0;
while (ss >> tmp){
ans += tmp;
}
cout << ans << endl;
}
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <vector>
#include <queue>
#include <map>
#include <sstream>
#include <algorithm>
#include <cstdlib>
using namespace std;
int main(){
// 使用 istringstream
string sinput;
while (getline(cin,sinput)){
istringstream ss(sinput);
long long tmp,ans=0;
while (ss >> tmp){
ans += tmp;
}
cout << ans << endl;
}
return 0;
}