#include <bits/stdc++.h>
using namespace std;
int main() {
  string x;
  cin >> x;
  double s = 0, z = 0;
  for (size_t i = 0; i < x.size(); i++) {
    if (x[i] <= '9' && x[i] >= '0') {
      z *= 10;
      z += x[i] - '0';
    } else if (x[i] == '.') {
      if (i + 3 < x.size() && x[i + 3] <= '9' && x[i + 3] >= '0') continue;
      double a = 0;
      a *= 10;
      a += x[i + 1] - '0';
      a *= 10;
      a += x[i + 2] - '0';
      a /= 100;
      s += a + z;
      z = 0;
      i += 2;
    } else {
      s += z;
      z = 0;
    }
  }
  s += z;
  stack<char> res;
  double q = s - floor(s);
  if (q) {
    q *= 100;
    res.push((int)((10.0 * (q / 10.0 - floor(q / 10.0))) + 0.4) + '0');
    q = floor(q / 10);
    res.push((int)((10.0 * (q / 10.0 - floor(q / 10.0))) + 0.4) + '0');
    res.push('.');
  }
  int i = 0;
  q = floor(s);
  while (q) {
    double ppp = (10.0 * (q / 10.0 - floor(q / 10.0)));
    int zzz = ppp + 0.4;
    res.push(zzz + '0');
    q = floor(q / 10);
    i++;
    if (i == 3 && q) {
      res.push('.');
      i = 0;
    }
  }
  if (res.top() == '.') res.push('0');
  while (!res.empty()) {
    cout << res.top();
    res.pop();
  }
}
