#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
//#include<algorithm>
//#include<cmath>
//#include<string>
//#include<cctype>
//#include <vector>
using namespace std;
int main() {
	int s,a = 0;
	while (~scanf("%*[^0-9]%d", &s)) a += s, cout<<a;
	cout << a << endl;
	return 0;
}