#include #include using namespace std; int main(){ string s; cin >> s; int n = 0; for(int i=0; i < s.length(); i++){ if(isdigit(s[i])) n += (int)(s[i] - '0'); } cout << n << endl; }