#include <bits/stdc++.h>
using namespace std;
string s;
int d;
int c;
int main() {
  cin >> s;
  for (int i = 0; i < s.length(); ++i) {
    string t = "";
    if (s[i] >= 'a' && s[i] <= 'z') continue;
    for (int j = i; j < s.length(); ++j) {
      if (s[j] >= 'a' && s[j] <= 'z') break;
      t += s[j];
    }
    int l = t.length();
    i += l;
    --i;
    if (l > 3) {
      if (t[l - 3] == '.') {
        int x = (int(t[l - 2] - '0') * 10) + int(t[l - 1] - '0');
        c += x;
        t.erase(l - 3, 3);
      }
    }
    int x = 0;
    for (int j = 0; j < t.length(); ++j) {
      if (t[j] == '.') continue;
      x *= 10;
      x += int(t[j] - '0');
    }
    d += x;
  }
  while (c >= 100) {
    ++d;
    c -= 100;
  }
  string ans = "";
  int cc = 0;
  while (d != 0) {
    if (cc % 3 == 0 && cc != 0) ans.insert(ans.begin(), 1, '.');
    ans.insert(ans.begin(), 1, char((d % 10) + '0'));
    d /= 10;
    ++cc;
  }
  if (ans.empty()) ans += '0';
  if (c != 0) {
    ans += '.';
    if (c < 10) {
      ans += '0';
      ans += char(c + '0');
    } else {
      ans += char((c / 10) + '0');
      ans += char((c % 10) + '0');
    }
  }
  cout << ans << endl;
  return 0;
}
