#include <iostream>
#include <cctype>
using namespace std;

int main(){
	char c;
	int total = 0;
	while(cin.get(c)){
		int n;
		if(isdigit(c)){
			cin.unget();
			cin >> n;
			total += n;
		}
	}
	cout << total << endl;
	return 0;
}