#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5, M = 1e6 + 7, SM = 1e3 + 5, logN = 20;
const long long MOD = 1e9 + 7, INF = 1e18 + 9;
const int dx[] = {1, 0, 0, -1, -1, 1, -1, 1};
const int dy[] = {0, 1, -1, 0, -1, 1, 1, -1};
void debug() { cerr << "\n"; }
template <typename Head, typename... Tail>
void debug(Head a, Tail... b) {
  cerr << a << " ";
  debug(b...);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  string s;
  cin >> s;
  long long n = (long long)s.size();
  vector<string> a;
  for (long long i = 0; i < n; i++) {
    if (isdigit(s[i]) || s[i] == '.') {
      string now = "";
      while (isdigit(s[i]) || s[i] == '.') now += s[i++];
      a.push_back(now);
    }
  }
  double ans = 0.00;
  for (auto &t : a) {
    long long cnt = 0;
    string f = "";
    for (long long i = (long long)t.size() - 1; i >= 0; i--) {
      if (t[i] == '.') break;
      cnt++;
    }
    for (long long i = 0; i < (long long)t.size(); i++) {
      if (t[i] != '.') {
        f += t[i];
      }
    }
    if (cnt == 2) {
      f.insert((long long)f.size() - 2, ".");
    } else if (cnt == 3) {
      f += ".00";
    } else if (cnt == (long long)t.size()) {
      f += ".00";
    }
    ans += stod(f);
  }
  string res = to_string(ans);
  for (long long i = (long long)res.size() - 1; res[i - 2] != '.'; i--) {
    res[i] = '#';
  }
  string fin = "";
  for (long long i = 0; i < (long long)res.size(); i++) {
    if (res[i] != '#') fin += res[i];
  }
  s = fin;
  fin = "";
  long long i = (long long)s.size() - 1;
  while (s[i] != '.') {
    fin += s[i];
    i--;
  }
  fin += s[i];
  i--;
  while (i >= 0) {
    for (long long j = i - 3; i > j && i >= 0; i--) {
      fin += s[i];
    }
    if (i >= 0) fin += ".";
  }
  reverse(fin.begin(), fin.end());
  cout << fin.substr(0, (long long)fin.size() - 3);
  if (fin[(long long)fin.size() - 1] != '0' ||
      fin[(long long)fin.size() - 2] != '0') {
    cout << "." << fin[(long long)fin.size() - 2]
         << fin[(long long)fin.size() - 1];
  }
  cout << endl;
  return 0;
}
