#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  string s;
  cin >> s;
  long long sum = 0;
  int i = 0;
  while (i < s.size() * 1LL) {
    while (s[i] >= 'a' && s[i] <= 'z') ++i;
    int i0 = i;
    while (i < s.size() * 1LL &&
           (s[i] == '.' || (s[i] >= '0' && s[i] <= '9'))) {
      ++i;
    }
    int i1 = i;
    int len = i1 - i0;
    long long number = 0;
    for (int j = int(i0); j < int(i1); ++j) {
      if (s[j] == '.') continue;
      number = number * 10 + (s[j] - '0');
    }
    number *= 100;
    if (len >= 3 && s[i1 - 1 - 2] == '.') number /= 100;
    sum += number;
  }
  long long sum0 = sum;
  vector<char> res;
  int digs = 0;
  if (sum == 0) {
    cout << "0" << endl;
  } else {
    while (sum) {
      int digit = sum % 10;
      sum /= 10;
      if (digs == 2 || (digs > 2 && (digs - 2) % 3 == 0)) {
        res.push_back('.');
      }
      res.push_back('0' + digit);
      ++digs;
    }
  }
  if (sum0 < 100) {
    while (res.size() < 2) res.push_back('0');
    res.push_back('.');
    res.push_back('0');
  }
  int fr = 0;
  if (res.size() >= 3 && res[0] == '0' && res[1] == '0') fr = 3;
  for (int j = int(res.size()) - 1; j >= int(fr); --j) cout << res[j];
  cout << endl;
  return 0;
}
