#include<iostream>
#include<string>
#include<sstream> //stringstream
using namespace std;
int main() {
string line;
while (getline(cin, line)) {
int sum = 0, x;
stringstream ss(line);
while (ss >> x)
//相当于x=(int)line,但是(int)line是不被允许的
sum += (x+1);
cout << sum << "\n";
}
return 0;
}
输入:1234
输出:1235