#include using namespace std; using ll = long long; #define itn int #define rep2(i,a,n) for(int i = (a);i < (n);i++) #define rep(i,n) rep2(i,0,n) using P = pair; int main(void){ int ans = 0; string s; cin >> s; for(int i = 0;i < s.size();i++){ if(isalpha(s[i]))continue; ans += s[i]-'0'; } cout << ans << endl; }