#include <bits/stdc++.h>
using namespace std;
long double f(long double x) {
  long double g = x;
  for (int i = 0; i < 100; ++i) x += g;
  return x;
}
int main() {
  string s;
  cin >> s;
  vector<string> a(500);
  int k = 0;
  for (int i = 0; i < s.size(); ++i)
    if ((s[i] >= '0' && s[i] <= '9') || s[i] == '.')
      for (; i < s.size(); ++i) {
        if (!((s[i] >= '0' && s[i] <= '9') || s[i] == '.')) {
          --i;
          ++k;
          break;
        }
        a[k] += s[i];
      }
  unsigned long long r = 0;
  long double cop = 0.0;
  for (int i = 0; i < 500 && !a[i].empty(); ++i) {
    int h = 1;
    int j = a[i].size() - 1;
    if (a[i].size() >= 4)
      if (a[i][a[i].size() - 3] == '.') {
        cop += (long double)((long double)((a[i][j] - '0') +
                                           ((a[i][j - 1] - '0') * 10)) /
                             100);
        j -= 2;
      }
    for (; j >= 0; --j) {
      if (a[i][j] != '.') {
        r += (a[i][j] - '0') * h;
        h *= 10;
      }
    }
  }
  int tmp = cop;
  r += tmp;
  cop -= tmp;
  string ans = to_string(r);
  int size = ans.size();
  for (int i = 0; i < size; ++i) {
    cout << ans[i];
    if ((size - i - 1) % 3 == 0 && i != size - 1) cout << '.';
  }
  if (cop != 0.00) {
    int w = f(cop);
    if (w < 10)
      cout << ".0" << w;
    else
      cout << "." << w;
  }
}
