#include <bits/stdc++.h>
using namespace std;
inline bool skip_alpha() {
  char s;
  while (cin >> s && isalpha(s))
    ;
  if (!(cin)) return false;
  cin.putback(s);
  return true;
}
inline long long to_integer(vector<string> &s) {
  long long n = 0;
  if (s.back().size() == 2 && s.size() > 1) {
    n = stoi(s.back());
    s.pop_back();
  }
  long long i = 100;
  while (s.size() != 0) {
    n += stoi(s.back()) * i;
    i *= 1000;
    s.pop_back();
  }
  return n;
}
void output(long long sum);
int main() {
  vector<string> v;
  long long sum = 0;
  while (skip_alpha()) {
    char ch;
    string digits = "";
    while (cin >> ch && isdigit(ch)) digits += ch;
    v.push_back(digits);
    if (isalpha(ch) || !cin) sum += to_integer(v);
  }
  output(sum);
  return 0;
}
void output(long long sum) {
  string dollarStr = to_string(sum / 100);
  string resultStr = "";
  int i = 1;
  for (auto rit = dollarStr.rbegin(); rit != dollarStr.rend(); ++rit, ++i) {
    resultStr += *rit;
    if (i % 3 == 0 && rit != dollarStr.rend() - 1) resultStr += '.';
  }
  for (auto rit = resultStr.rbegin(); rit != resultStr.rend(); ++rit)
    cout << *rit;
  if (sum % 100) cout << '.' << setfill('0') << setw(2) << sum % 100;
}
