#include <bits/stdc++.h>
using namespace std;
string DoubToStr(double Val) {
  ostringstream strs;
  strs << fixed << setprecision(2) << Val;
  string str = strs.str();
  return str;
}
int t = 0, k = 0;
void check(string q) {
  for (int i = 0; i < q.size(); i++) {
    if (q[i] == '.') {
      t++;
      k = 0;
      continue;
    }
    if (t != 0) k++;
  }
}
void asd(double a) {
  string q = DoubToStr(a);
  check(q);
  if (k == 3) {
    cout << q;
  } else {
    int as = 6;
    if ((q[q.size() - 1] == 48 && q[q.size() - 2] == 48)) {
      q.erase(q.size() - 3, 3);
      as = 3;
    }
    for (int i = q.size() - as; i > 0; i -= 3) {
      q.insert(i, ".");
    }
  }
  cout << q;
}
int main() {
  string s;
  cin >> s;
  double a, sum = 0;
  string s1 = "";
  for (int i = 0; i < s.size() + 1; i++) {
    if (i == s.size() || (s[i] >= 97 && s[i] <= 122)) {
      if (s1 == "") {
        continue;
      }
      t = 0;
      if (k != 2) a = atof(s1.c_str());
      if (k == 2) {
        s1.insert(s1.size() - 2, ".");
        a = atof(s1.c_str());
      }
      sum += a;
      s1 = "";
      continue;
    }
    if (s[i] == '.') {
      t++;
      k = 0;
      continue;
    }
    if (t != 0) k++;
    s1 += s[i];
  }
  asd(sum);
  return 0;
}
