#include using namespace std; int main(){ char s[10050]; int sum=0; cin >> s; for(int i= 0;i < s[i];i++) if(s[i]>='0'&&s[i]<='9') sum+=s[i]-'0'; cout << sum <