#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  double sum = 0.0;
  string s;
  cin >> s;
  int n = (int)s.size();
  for (int i = 0; i < n;) {
    string v;
    while (isdigit(s[i]) or s[i] == '.' and i < n) {
      v += s[i];
      i++;
    }
    if (!v.empty()) {
      string t;
      int m = (int)v.size();
      for (int j = 0; j < m; j++) {
        if (v[j] == '.' and (j + 4 == m or (j + 4 < m and v[j + 4] == '.'))) {
          continue;
        }
        t += v[j];
      }
      stringstream ss(t);
      double value;
      ss >> value;
      sum += value;
    }
    i++;
  }
  s = to_string(sum);
  reverse(s.begin(), s.end());
  int i = 0;
  n = (int)s.size();
  while (s[i + 2] != '.' and s[i] == '0') {
    i++;
  }
  string t, ans;
  while (i < n) {
    t += s[i++];
  }
  int pos = 6;
  n = (int)t.size();
  for (int i = 0; i < n; i++) {
    if (i == pos) {
      ans += '.';
      pos += 3;
    }
    ans += t[i];
  }
  if (ans[0] == '0' and ans[1] == '0') {
    ans.erase(0, 3);
  }
  reverse(ans.begin(), ans.end());
  cout << ans << endl;
  return 0;
}
