#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int d, n, b, i, j, k, z, x = 1, y = 1, sum = 1000000000, p, q,
                                     ans = 0, l, T, yy = 0, xx = 0;
  bool f;
  string s;
  cin >> s;
  l = s.length();
  for (i = 0; i < l;) {
    while (i < l && s[i] >= 'a' && s[i] <= 'z') i++;
    k = 0;
    f = false;
    x = 0;
    while (i < l && ((s[i] >= '0' && s[i] <= '9') || s[i] == '.')) {
      if (s[i] != '.') {
        k++;
        x = x * 10 + s[i] - '0';
      } else {
        f = true;
        k = 0;
      }
      i++;
    }
    if (f) {
      if (k == 3)
        xx = xx + x;
      else {
        y = 1;
        while (k--) y = y * 10;
        xx = xx + x / y;
        yy = yy + x % y;
      }
    } else
      xx = xx + x;
  }
  ans = ans + xx + yy / 100;
  stringstream second, ss1;
  second << ans;
  s = second.str();
  l = s.length();
  k = 0;
  second.clear();
  for (i = l - 1; i >= 0; i--) {
    k++;
    ss1 << s[i];
    if (k % 3 == 0 && i > 0) ss1 << ".";
  }
  s = ss1.str();
  reverse(s.begin(), s.end());
  cout << s;
  if (yy % 100 != 0) {
    cout << ".";
    if (yy % 100 <= 9)
      cout << "0" << yy % 100;
    else
      cout << yy % 100;
  }
  return 0;
}
