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