#include<iostream>
using namespace std;

int strtoint(char *s){
	int n=0,t=0;
	bool number=false;

	while(*s!='\0'){
		if(*s>='0' && *s<='9'){
			if(!number){
				number=true;
				t=0;
			}

			t = t*10 + *s - '0';
		}
		else{
			if(number){
				number=false;
				n+=t;
			}
		}
		++s;
	}
	n+=t;
	return n;
}



int main(){
	char s[81];
	int n=0;
	cin >> s;

	n = strtoint(s);

	cout << n << endl;
}

	