#include<iostream>
using namespace std;

int main()
{
	int a, sum = 0;
	char s[81];
	while (scanf("%*[^0-9]", s) != EOF) {
		if ( scanf("%d", &a) == EOF ) break;
		sum += a;
	}
	cout<<sum<<endl;
	return 0;
}