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