#include <iostream>
#include <cctype>
#include <string>
#include <algorithm>
using namespace std;

int main(int argc, char **argv)
{
  int i, accm = 0;
  char c;
  while (cin.get(c)) {
    if (isdigit(c)) {
      cin.unget();
      cin >> i;
      accm += i;
    }
  }
  cout << accm << endl;
  return 0;
}