#include #include using namespace std; int main() { string s; int sum = 0; cin >> s; for (auto c : s) { if (isdigit(c)) { sum += c - '0'; } } cout << sum << endl; }