#include <bits/stdc++.h>
using namespace std;
ifstream f("test.in");
string s, ss;
double answer;
int pos;
void add(string p) {
  string nr = "";
  int pos = 0;
  for (int i = 0; i < p.size(); ++i) {
    if (p[i] == '.') {
      if (p.size() - i - 1 >= 3) {
        nr += p.substr(pos, i - pos);
      } else {
        nr += p.substr(pos, p.size() - pos);
        break;
      }
      pos = i + 1;
    }
    if (i == p.size() - 1) {
      nr += p.substr(pos, p.size() - pos);
    }
  }
  answer += atof(nr.c_str());
}
void show(double price) {
  int intprice = price;
  vector<int> pieces;
  while (intprice) {
    pieces.push_back(intprice % 1000);
    intprice /= 1000;
  }
  if (pieces.size()) {
    cout << pieces[pieces.size() - 1];
    for (int i = pieces.size() - 2; i >= 0; --i) {
      cout << ".";
      int crt = pieces[i];
      if (crt < 10) {
        cout << "00";
      } else {
        if (crt < 100) {
          cout << "0";
        }
      }
      cout << crt;
    }
  } else {
    cout << "0";
  }
  intprice = price;
  if (price - intprice > 0.0) {
    cout << ".";
    if (100 * (price - intprice) < 9) {
      cout << "0";
    }
    cout << 100 * (price - intprice) << '\n';
  }
}
int main() {
  cin >> s;
  pos = 0;
  for (unsigned int i = 0; i < s.size(); ++i) {
    if (s[i] >= '0' && s[i] <= '9') {
      if (s[i - 1] >= 'a' && s[i - 1] <= 'z') {
        pos = i;
      } else if (i == s.size() - 1) {
        add(s.substr(pos, i - pos + 1));
      }
    }
    if (s[i] >= 'a' && s[i] <= 'z') {
      if (i > 0 && s[i - 1] >= '0' && s[i - 1] <= '9') {
        add(s.substr(pos, i - pos));
      }
    }
  }
  show(answer);
}
