#include using namespace std; int main() { int ans = 0; char c; while (cin >> c) { if (isdigit(c)) { ans += c - '0'; } } cout << ans << endl; }