#include <bits/stdc++.h>
using namespace std;
vector<char> v;
vector<char> op;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string second;
  long long int len, x, ct, n, i, idx, temp, ans = 0, dec = 0, sz, dig;
  char ch;
  cin >> second;
  n = second.length();
  len = 0;
  for (idx = 0; idx < n; idx++) {
    if (second[idx] >= 'a' && second[idx] <= 'z') continue;
    while ((second[idx] == '.') || (second[idx] <= '9' && second[idx] >= '0')) {
      v.push_back(second[idx]);
      idx++;
      len++;
    }
    if (len >= 4) {
      if (v[len - 3] == '.') {
        temp = 0;
        for (i = (len - 2); i < len; i++) {
          x = v[i] - '0';
          temp = temp * 10 + (x);
        }
        dec = dec + temp;
        temp = 0;
        for (i = 0; i < (len - 3); i++) {
          if (v[i] == '.') continue;
          x = v[i] - '0';
          temp = temp * 10 + (x);
        }
        ans = ans + temp;
      } else {
        temp = 0;
        for (i = 0; i < len; i++) {
          if (v[i] == '.') continue;
          x = v[i] - '0';
          temp = temp * 10 + (x);
        }
        ans = ans + temp;
      }
    } else {
      temp = 0;
      for (i = 0; i < len; i++) {
        x = v[i] - '0';
        temp = temp * 10 + (x);
      }
      ans = ans + temp;
    }
    len = 0;
    v.clear();
    idx--;
  }
  if (!((dec % 10) == 0 && ((dec / 10) % 10) == 0)) {
    if (dec) {
      dig = dec % 10;
      ch = dig + '0';
      op.push_back(ch);
      dec = dec / 10;
      if (dec == 0) {
        op.push_back('0');
        op.push_back('.');
      }
    }
    if (dec) {
      dig = dec % 10;
      ch = dig + '0';
      op.push_back(ch);
      dec = dec / 10;
      op.push_back('.');
    }
    if (dec) ans = ans + dec;
  } else {
    dec = dec / 100;
    ans = ans + dec;
  }
  ct = 0;
  if (ans == 0) op.push_back('0');
  while (ans) {
    dig = ans % 10;
    ch = dig + '0';
    if (ct == 3) {
      op.push_back('.');
      ct = 0;
    }
    op.push_back(ch);
    ct++;
    ans = ans / 10;
  }
  sz = op.size();
  for (i = (sz - 1); i >= 0; i--) cout << op[i];
  cout << "\n";
  return 0;
}
