#include<iostream>
#include<string>
#include<cstdio>
using namespace std;

int main(){
  char c;
  int pass=0, sum=0;

  while((c=getchar()) != EOF){
    if('0' <= c  && c <= '9'){
	pass *= 10;
	pass += c - '0';
      }
      else{
      sum += pass;
      pass = 0;
      }
  }
  cout << sum << endl;
  return 0;
}