#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using LD = long double;
const LL mod = 998244353;
LL g[1000] = {0};
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  s.push_back('a');
  string nums = "";
  for (LL i = 0; i < s.size(); ++i) {
    if ((s[i] >= '0' && s[i] <= '9') || s[i] == '.') {
      nums += s[i];
    } else if (nums.size() > 0) {
      LL p = 0;
      if (nums.size() > 2 && nums[nums.size() - 3] == '.') {
        p = 0;
      } else {
        p = 2;
      }
      for (LL j = 0; j < nums.size(); ++j) {
        if (nums[nums.size() - j - 1] >= '0' &&
            nums[nums.size() - j - 1] <= '9') {
          g[p] += nums[nums.size() - 1 - j] - '0';
          p++;
        }
      }
      nums = "";
    }
  }
  LL c = 0;
  for (LL i = 0; i < 1000; ++i) {
    g[i] += c;
    c = g[i] / 10;
    g[i] = g[i] % 10;
  }
  LL en = 0;
  for (LL i = 1000 - 1; i >= 0; --i) {
    if (g[i] != 0) {
      en = i;
      break;
    }
  }
  string ans = "";
  if (en <= 1) {
    cout << "0." << g[1] << g[0] << "\n";
    return 0;
  } else {
    string dot(1, '.');
    if (g[0] + g[1] != 0) {
      ans.push_back('0' + g[0]), ans.push_back('0' + g[1]);
      ans += dot;
    }
    for (LL i = 2; i < 1000; ++i) {
      ans.push_back('0' + g[i]);
      if (i == en) {
        break;
      }
      if ((i - 1) % 3 == 0) {
        ans += dot;
      }
    }
  }
  reverse(ans.begin(), ans.end());
  cout << ans << "\n";
}
