#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 22;
int n;
string s;
int res, cnt;
int f(string t) {
  int r = 0;
  for (int i = 0; i < t.size(); i++) {
    if (t[i] == '.') continue;
    r *= 10;
    r += int(t[i] - '0');
  }
  return r;
}
void pr(int r) {
  if (r == 0) {
    cout << 0;
    return;
  }
  vector<int> v;
  while (r) {
    v.push_back(r % 10);
    r /= 10;
  }
  for (int i = v.size() - 1; i >= 0; i--) {
    cout << v[i];
    if (i % 3 == 0 and i != 0) {
      cout << ".";
    }
  }
}
int main() {
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    while (s[i] >= 'a' && s[i] <= 'z') i++;
    int j = i, las = -1;
    while ((s[i] >= '0' && s[i] <= '9') || s[i] == '.') {
      if (s[i] == '.') las = i;
      i++;
    }
    if (las == -1) {
      res += f(s.substr(j, i - j));
    } else if (i - las == 3) {
      cnt += f(s.substr(las + 1, 2));
      res += f(s.substr(j, las - j));
    } else {
      res += f(s.substr(j, i - j));
    }
  }
  res += (cnt / 100);
  cnt %= 100;
  if (cnt == 0)
    pr(res);
  else {
    pr(res);
    cout << ".";
    if (cnt / 10 == 0)
      cout << 0 << cnt;
    else
      cout << cnt;
  }
  return 0;
}
