#include using namespace std; int main(){ string s;cin>>s; int ans=0; for(int i=0;i<10;i++){ if(isdigit(s[i])){ ans+=s[i]-'0'; } } cout<