#include <bits/stdc++.h>
using namespace std;
int n, m, k, l, r, ans, ost;
string s;
int main() {
  cin >> s;
  s = s + 'a';
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] >= 'a' && s[i] <= 'z') {
      if (k == 2) {
        ost += (m % 100);
        m /= 100;
      }
      ans += m;
      k = 0;
      m = 0;
    } else {
      if (s[i] == '.')
        k = 0;
      else {
        k++;
        m = m * 10 + (s[i] - '0');
      }
    }
  }
  ans += (ost / 100);
  ost %= 100;
  vector<int> v;
  if (!ans) cout << 0;
  while (ans > 0) {
    k = ans % 1000;
    v.push_back(k);
    ans /= 1000;
  }
  reverse(v.begin(), v.end());
  for (int i = 0; i < v.size(); ++i) {
    if (i != 0) {
      if (v[i] < 10)
        cout << "00";
      else if (v[i] < 100)
        cout << "0";
    }
    cout << v[i];
    if (i != v.size() - 1) cout << '.';
  }
  if (!ost) return 0;
  cout << '.';
  if (ost < 10)
    cout << 0 << ost;
  else
    cout << ost;
}
