#include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;
typedef pair<int, int>P;

int main() {
	int n = 0, v = 0;
	for (; ~scanf("%*c%d", &v); v = 0) n += v;
	printf("%d\n", n);
	return 0;
}