#include <iostream> //üoÍ
#include <string>   //¶ñ
#include <vector>   //®Izñ
#include <sstream>  //¶ñtH[}bg
#include <cctype>
#include <cstdlib>

using namespace std;

int main(){
	vector<char> vec;
	char c;
	int	n = 0;
	while(cin >> c){
			vec.push_back(c);
	}
	
	for(int i = 0; i < vec.size(); i++){
		if(isdigit(vec[i]) != 0){
			int j = i;
			for( i ; isdigit(vec[i]) != 0; i++){
			}
			string str = "";
			for( j ; j != i ; j++){
				str += vec[j];
			}
			n += atoi(str.c_str());
		}
	}

	cout << n << endl;
	

	return 0;
	
}