#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long rubs = 0, cops = 0;
  for (long long i = 0; i < s.size(); i++) {
    if (isdigit(s[i])) {
      long long dotj = -1, dotf = -1;
      long long j;
      for (j = i; j < s.size(); j++) {
        if (!isdigit(s[j]) && s[j] != '.') break;
        if (s[j] == '.') dotj = j;
      }
      if (j - dotj == 3) dotf = dotj;
      string rubs_i = "";
      for (j = i; j < s.size(); j++) {
        if (s[j] == '.') {
          if (j == dotf) break;
          continue;
        } else if (!isdigit(s[j]))
          break;
        rubs_i += s[j];
      }
      string cops_i = "";
      if (dotf != -1) {
        for (j = dotf + 1; j < s.size(); j++) {
          if (!isdigit(s[j])) break;
          cops_i += s[j];
        }
      } else
        cops_i = "0";
      rubs += stoi(rubs_i);
      cops += stoi(cops_i);
      i = j;
    }
  }
  rubs += cops / 100;
  cops = cops % 100;
  string c = to_string(cops);
  string r = to_string(rubs);
  for (long long i = 0; i < r.size(); i++) {
    cout << r[i];
    if ((r.size() - i - 1) % 3 == 0 && i + 1 != r.size()) {
      cout << ".";
    }
  }
  if (c == "00" || c == "0") {
    c = "";
  }
  if (c.size() > 0) {
    cout << ".";
    if (c.size() == 1) cout << "0";
  }
  for (long long i = 0; i < c.size(); i++) {
    cout << c[i];
  }
  return 0;
}
