// 2011/04/04 Tazoe

#include <iostream>
using namespace std;

int main()
{
	double sum = 0.0;

	while(true){
		char c;
		cin >> c;
		if(cin.eof())
			break;

		if(c>='0'&&c<='9'){
			double num = (double)(c-'0');
			while(true){
				cin >> c;
				if(!(c>='0'&&c<='9'))
					break;
				num = num*10.0+(double)(c-'0');
			}
			sum += num;
		}
	}

	cout.precision(0);
	cout << fixed << sum << endl;

	return 0;
}