#include<iostream>
#include<stdio.h>
#include<stdlib.h>
using namespace std;

int main()
{
	char character = '0';
	int ansho=0;
	do
	{
	int temp = 0;

		while(cin >>character)
		{
			if('0'<=character&&character<='9')
			{
				temp = (temp*10 + character -'0');
			}
			else break;
		}
		ansho += temp;
	}while(cin.eof());

	cout << ansho << endl;
	return 0;
}