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