#include using namespace std; int main() { string s; cin >> s; int ans = 0; for (const char &c : s) { if ('0' <= c and c <= '9') ans += (c - '0'); } cout << ans << '\n'; return 0; }