#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {char Tex[99],T;int N=0,i=0;while (scanf("%c",&T)!=EOF) if (T>='0' && T<='9') Tex[i++]=T; else {Tex[i]=0;N+=atoi(Tex);i=0;} printf("%d\n",N);return 0;}