#include using namespace std; int main() { string S; cin >> S; int ans = 0; for (int i = 0; i < S.size(); i++) if (isdigit(S.at(i))) ans += (int)S.at(i) - '0'; cout << ans << "\n"; }