#include #include int main(){ char s[10001]; int a=0; scanf("%s",s); for(int i=0;s[i]!='\0';i++){ if(isdigit(s[i])) a+=s[i]-'0'; } printf("%d",a); }