#include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int i; string S,SS; cin >> S; vector a; for ( i = 0; i < S.length(); i++) { if (isdigit(S[i]) != 0) { SS = S[i]; a.push_back(stoi(SS)); }; } cout << accumulate(a.begin(), a.end(), 0) << endl; return 0; }