#include <iostream>
#include <cctype>
#include <cstring>
using namespace std;

int main(){
  char s[81];
  int n=0;
  while(cin>>s){
    int p=1;
    for(int i=strlen(s)-1;i>=0;--i){
      if(isdigit(s[i])){
	n+=(s[i]-'0')*p;
	p*=10;
      }
      else p=1;
    }
  }
  cout<<n<<endl;
  return 0;
}