#include <bits/stdc++.h>
using namespace std;
const int N = 25;
const double eps = 1e-12;
const double pi = acos(-1.0);
const int MAX = 0x3f3f3f3f;
int main() {
  string s, j, z, f;
  int zheng = 0, ret, q;
  double fen = 0.000;
  int c;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] >= '0' && s[i] <= '9') {
      z.clear();
      while (s[i] >= '0' && s[i] <= '9') {
        z += s[i];
        i++;
      }
      while (s[i] == '.') {
        i++;
        j.clear();
        c = 0;
        while (s[i] >= '0' && s[i] <= '9') {
          j += s[i];
          i++;
          c++;
        }
        if (c == 3)
          z += j;
        else {
          f = j;
          for (int i = 0; i < f.size(); i++) {
            fen += pow(0.1, i + 1) * (f[i] - '0');
          }
        }
      }
      zheng += atoi(z.c_str());
      z.clear();
      f.clear();
      j.clear();
    }
  }
  zheng += fen;
  string ans;
  if ((int)(fen * 100) % 10 != 0 || (int)(fen * 10) % 10 != 0) {
    fen += eps;
    fen = fen * 100;
    q = (int)fen;
    ans += ((int)fen % 10) + '0';
    ans += ((int)fen % 100 / 10) + '0';
    ans += '.';
  }
  int zhen = zheng;
  int k = 0;
  while (zhen != 0) {
    if (k % 3 == 0 && k != 0) ans += '.';
    ans += zhen % 10 + '0';
    zhen /= 10;
    k++;
  }
  if (zheng == 0) ans += '0';
  int p = ans.size() - 1;
  if (ans[p] == '3' && ans[p - 1] == '.' && ans[p - 2] == '2') ans[0] = '9';
  if (ans[p] == '3' && ans[p - 1] == '.' && ans[p - 2] == '2') ans[0] = '9';
  for (int i = ans.size() - 1; i >= 0; i--) cout << ans[i];
  return 0;
}
