#include <bits/stdc++.h>
signed main() {
  std::string s;
  std::cin >> s;
  long long n = s.size();
  long long p = 0;
  long long ttl = 0;
  while (1) {
    if (p == n) break;
    while (p < n && std::isalpha(s[p])) ++p;
    long long a = 0;
    std::string tmp;
    while (p < n && (s[p] == '.' || std::isdigit(s[p]))) {
      tmp.push_back(s[p]);
      if (std::isdigit(s[p])) a = a * 10 + (s[p] - '0');
      ++p;
    }
    if (tmp.size() < 3 || tmp[tmp.size() - 3] != '.') a *= 100;
    ttl += a;
  }
  long long integral = ttl / 100;
  std::deque<char> output;
  if (integral == 0) {
    output.push_front('0');
  } else {
    long long dgt = 0;
    while (integral) {
      if (dgt == 3) {
        dgt = 0;
        output.push_front('.');
      }
      output.push_front(integral % 10 + '0');
      integral /= 10;
      ++dgt;
    }
  }
  long long fractional = ttl % 100;
  if (fractional) {
    output.push_back('.');
    output.push_back('0' + fractional / 10);
    output.push_back('0' + fractional % 10);
  }
  for (auto ch : output) std::cout << ch;
  std::cout << std::endl;
  return 0;
}
