#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n = 0, x = 0, y;
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    while (s[i] >= 'a' && s[i] <= 'z') i++;
    x = 0;
    y = 100;
    while (s[i] >= '0' && s[i] <= '9' || s[i] == '.') {
      if (s[i] == '.')
        if (s[i + 3] >= 'a' && s[i + 3] <= 'z' || i + 3 == s.size()) y = 1;
      if (s[i] != '.') x = x * 10 + s[i] - '0';
      i++;
    }
    x = x * y;
    n += x;
  }
  vector<int> ans;
  while (n > 0) {
    ans.push_back(n % 10);
    n /= 10;
  }
  if (ans.size() == 2)
    cout << "0";
  else if (ans.size() == 1)
    cout << "0.0";
  int z = -1, zz = 0;
  if (ans[0] == 0 && ans[1] == 0) z = 1;
  if (ans.size() % 3 == 2) zz = 2;
  if (ans.size() % 3 == 0) zz = 1;
  for (int i = ans.size() - 1; i > z; i--) {
    if ((ans.size() + zz - i) % 3 == 0 && i > 2 && i != ans.size() - 1 ||
        i == 1)
      cout << ".";
    cout << ans[i];
  }
}
