#include <bits/stdc++.h>
using namespace std;
string s;
long double nr, suma, x, z, nrc;
vector<long long> v;
long long cnt, n, i, ok, punct, zecimal, nn, p;
int main() {
  cin.sync_with_stdio(0);
  cout.sync_with_stdio(0);
  cin >> s;
  n = s.size();
  for (i = 0; i < n; i++) {
    while (isalpha(s[i])) i++;
    nr = 0;
    ok = 0;
    punct = 0;
    while (!isalpha(s[i]) && i < n) {
      cnt = 0;
      while (isdigit(s[i])) {
        nr = nr * 10 + (s[i] - '0');
        cnt++;
        i++;
      }
      if (s[i] == '.') {
        i++;
        punct = 1;
      }
    }
    if (cnt < 3 && punct) {
      nr /= 100.0;
      zecimal = 1;
    }
    suma += nr;
    i--;
  }
  z = (suma - (long long)suma) * 100;
  cnt = 0;
  nn = (long long)suma;
  p = 1;
  if (nn == 0) v.push_back(0);
  while (nn) {
    nrc = nrc + (nn % 10) * p;
    nn /= 10;
    cnt++;
    p *= 10;
    if (cnt == 3) {
      v.push_back(nrc);
      p = 1;
      nrc = 0;
      cnt = 0;
    }
  }
  if (cnt) v.push_back(nrc);
  reverse(v.begin(), v.end());
  n = v.size();
  cout << v[0];
  for (i = 1; i < n; i++) {
    cout << '.';
    if (v[i] < 99) cout << 0;
    if (v[i] < 9) cout << 0;
    cout << v[i];
  }
  if (zecimal && z) {
    cout << '.';
    if (z + 0.0000000001 < 10.0)
      cout << 0 << z << '\n';
    else
      cout << z << '\n';
  }
  return 0;
}
