#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  vector<string> c;
  int last = 0;
  double sum = 0.0;
  for (auto i : s) {
    if (i >= '0' && i <= '9' || i == '.') {
      if (last == 0) c.push_back("");
      last = 1;
      c[c.size() - 1] += i;
    } else
      last = 0;
  }
  vector<double> d(c.size(), 0.0);
  for (int i = 0; i < c.size(); ++i) {
    string cur = c[i];
    vector<string> k(1, "");
    for (auto j : cur)
      if (j == '.')
        k.push_back("");
      else
        k[k.size() - 1] += j;
    double pt = 0.0, pl = 0.0;
    if (k.size() > 1 && k[k.size() - 1].size() == 2) {
      pl = (double)(k[k.size() - 1][0] - '0') * 10 +
           (double)(k[k.size() - 1][1] - '0');
      pl /= 100.0;
      k[k.size() - 1] = "";
    }
    for (int j = 0; j < k.size(); ++j)
      if (k[j] != "")
        for (auto q : k[j]) pt = pt * 10.0 + (double)(q - '0');
    sum += pt + pl;
  }
  string ans = "";
  double dv = sum - (double)(int)sum;
  if (dv != 0) {
    ans += '.';
    int q3 = (int)(dv * 100.0 + 0.5);
    int q1 = q3 / 10;
    int q2 = q3 % 10;
    ans += (char)(q1 + (int)'0');
    ans += (char)(q2 + (int)'0');
  }
  int fs = (int)(sum - dv + 0.5), k = 1;
  if (fs == 0) ans = '0' + ans;
  while (fs) {
    ans = (char)(fs % 10 + (int)'0') + ans;
    fs /= 10;
    if (fs && k % 3 == 0) ans = '.' + ans;
    ++k;
  }
  cout << ans;
  return 0;
}
