#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, s1;
  long long i, j, n, q, c, pp, dot, sz, pos, pos1;
  double sm, dd;
  while (cin >> s) {
    dot = 0;
    n = 0;
    q = 0;
    sm = 0;
    j = 0;
    s.push_back('a');
    sz = s.size();
    for (i = 0; i < sz; i++) {
      if (isdigit(s[i]) || s[i] == '.') {
        if (s[i] == '.') {
          pos = i;
          dot++;
        } else {
          n = n * 10 + s[i] - '0';
          pos1 = i;
          q++;
        }
      } else {
        if (n > 0) {
          if (dot == 0) {
            sm += n;
          } else {
            if (pos1 - pos <= 2) {
              sm += n / 100.0;
            } else {
              sm += n;
            }
          }
          n = 0;
          dot = 0;
          q = 0;
        }
      }
    }
    pp = sm;
    dd = (sm - pp) + (1e-5);
    int k = 0;
    s1.clear();
    while (pp > 0) {
      k++;
      s1.push_back(pp % 10 + '0');
      if (k % 3 == 0) s1.push_back('.');
      pp /= 10;
    }
    int jj = 0;
    if (s1[s1.size() - 1] == '.') s1.erase(s1.size() - 1);
    if (s1.size() > 0) {
      jj = 1;
      for (i = s1.size() - 1; i >= 0; i--) cout << s1[i];
    }
    if (dd > 0.001) {
      if (jj == 0)
        cout << "0.";
      else
        cout << ".";
      dd *= 100;
      int qq = dd;
      if (dd < 10)
        cout << "0" << qq;
      else
        cout << qq;
    }
    cout << endl;
  }
  return 0;
}
