#include #include using namespace std; int main() { string in; int sum; sum = 0; cin >> in; for (char x:in) { if (isdigit(x) != 0) { sum += (int)x; } } cout << sum << "\n"; return 0; }