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

int main(){
  char ch;
  string num = "";
  int ans = 0;
  while(scanf("%c",&ch) != EOF){
      
    if('0' <= ch && ch <= '9'){
      num += ch;
    } else {
      if(num.size() > 0)ans+=atoi(num.c_str());
      num = "";
    }
  }
  cout << ans << endl;
  return 0;
}