#include #include #define REP(i, n) for(int i = 0; i < (int)(n); i++) #define print(x) cout << x << endl; using namespace std; int main(void){ cin.tie(0); ios::sync_with_stdio(false); string str; cin >> str; int ans = 0; string c; REP(i, str.size()){ if (isalpha(str[i])){ continue; }else{ c = str.substr(i,1); ans += stoi(c); } } print(ans); return 0; }