#include #define rep(i,l,n) for(int i=l;i vi; typedef vector vvi; typedef pair pii; int main(){ string s; cin>>s; int ans=0; rep(i,0,s.size()){ if(s[i]-'0'>=0 && s[i]-'0'<=9) ans+=s[i]-'0'; } o(ans); }