#include int A; int main(void){ for(char C;(C=getchar())!=EOF;){ if('0'<=C&&C<='9')A+=C-'0'; } printf("%d\n",A); return 0; }