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

int main(){
  char ch;
  string num;
  int ans = 0;
  while(1){
    num = '0';
    while(1){
      cin >> ch;
      if(cin.eof())break;
      if('0' <= ch && ch <= '9'){
	num += ch;
      } else break;
    } 
    ans+=atoi(num.c_str());
    if(cin.eof())break;
  }
  cout << ans << endl;
}