#include int main(void){ int c; int sum=0; while((c=getchar())!='\n'){ if(c-'0'>=0 && c-'0'<=9) sum += c-'0'; } printf("%d\n",sum); return 0; }