#include int main(void){ int ans = 0; char str[10001]; char *p = str; gets(str); while(*p){ if(*p > '0' && *p <= '9') ans += *p - '0'; p++; } printf("%d\n", ans); return 0; }