#include <bits/stdc++.h>
int main() {
  std::string s;
  std::cin >> s;
  std::vector<std::string> v;
  long long a = -1;
  for (long long i = 0; i < s.size(); ++i) {
    if (isalpha(s[i])) {
      if (a != i - 1) {
        v.push_back(s.substr(a + 1, i - a - 1));
      }
      a = i;
    }
  }
  v.push_back(s.substr(a + 1, s.size() - a - 1));
  long long t = 0;
  for (long long i = 0; i < v.size(); ++i) {
    long long k = 0;
    long long l = 0;
    for (long long j = 0; j < v[i].size(); ++j) {
      if (v[i][j] == '.' && j + 3 == v[i].size()) {
        l = (v[i][j + 1] - '0') * 10 + (v[i][j + 2] - '0');
        break;
      }
      if (v[i][j] == '.') continue;
      k *= 10;
      k += v[i][j] - '0';
    }
    t += k * 100 + l;
  }
  long long k = t / 100;
  long long l = t % 100;
  std::string ns;
  long long cnt = 0;
  while (k != 0) {
    ns += '0' + (k % 10);
    k /= 10;
    cnt++;
    if (cnt == 3) {
      ns += '.';
      cnt = 0;
      continue;
    }
  }
  if (!ns.empty() && cnt == 0) ns.erase(ns.size() - 1, 1);
  if (ns.empty()) ns += '0';
  std::reverse(ns.begin(), ns.end());
  if (l != 0) {
    ns += '.';
    ns += '0' + l / 10;
    ns += '0' + l % 10;
  }
  std::cout << ns << std::endl;
}
