#include <bits/stdc++.h>
using namespace std;
long long zs;
int fs;
int ans[100];
int main() {
  string s;
  cin >> s;
  int len = s.length();
  s[len] = 'a';
  for (int i = 0; i <= len; i++) {
    int len1 = 0, len2 = 0, len3 = 0;
    int t1 = 0, t2 = 0, t3 = 0;
    if (s[i] >= '0' && s[i] <= '9') {
      while (s[i] >= '0' && s[i] <= '9') {
        t1 = t1 * 10 + s[i] - '0';
        len1++;
        i++;
      }
      if (s[i] == '.') {
        i++;
        while (s[i] >= '0' && s[i] <= '9') {
          t2 = t2 * 10 + s[i] - '0';
          len2++;
          i++;
        }
        if (s[i] == '.') {
          i++;
          while (s[i] >= '0' && s[i] <= '9') {
            t3 = t3 * 10 + s[i] - '0';
            len3++;
            i++;
          }
          if (len3 == 2) {
            fs += t3;
            zs += t1 * 1000 + t2 + fs / 100;
            fs %= 100;
          } else
            zs += (t1 * 1000 + t2) * 1000 + t3;
        } else {
          if (len2 == 2) {
            fs += t2;
            zs += t1 + fs / 100;
            fs %= 100;
          } else
            zs += t1 * 1000 + t2;
        }
      } else
        zs += t1;
    }
  }
  int cnt = 0;
  for (cnt = 0; zs; cnt++) {
    ans[cnt] = zs % 10;
    zs /= 10;
  }
  if (!cnt)
    cout << 0;
  else {
    for (int i = cnt - 1; i >= 0; i--) {
      cout << ans[i];
      if (i % 3 == 0 && i) cout << '.';
    }
  }
  if (fs) {
    cout << '.';
    if (fs < 10)
      cout << 0 << fs;
    else
      cout << fs << endl;
  }
  return 0;
}
