#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  s = s + 'x';
  int dol = 0;
  int cent = 0;
  int td = 0;
  int tc = 0;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] >= 'a' && s[i] <= 'z') {
      dol += td;
      cent += tc;
      td = 0;
      tc = 0;
      continue;
    }
    if (s[i] >= '0' && s[i] <= '9') td = td * 10 + (int)(s[i] - '0');
    if (s[i] == '.') {
      if (s[i + 3] >= '0' && s[i + 3] <= '9')
        continue;
      else
        for (int j = 0; j < 2; ++j) {
          ++i;
          tc = tc * 10 + (int)(s[i] - '0');
        }
    }
  }
  dol = dol + cent / 100;
  cent = cent % 100;
  int storecent = cent;
  int dig = 0;
  string sd;
  string sc;
  if (dol == 0 && cent > 0) {
    sd = '.' + sd;
    sd = '0' + sd;
  }
  while (dol > 0) {
    if (dig == 0) sd = '.' + sd;
    sd = (char)((dol % 10) + '0') + sd;
    dol /= 10;
    dig = (dig + 1) % 3;
  }
  while (cent > 0) {
    sc = (char)((cent % 10) + '0') + sc;
    cent /= 10;
  }
  if (sc.length() == 1) sc = '0' + sc;
  for (int i = 0; i < sd.length() - 1; ++i) cout << sd[i];
  if (storecent != 0) {
    cout << ".";
    cout << sc[0] << sc[1];
  }
  cout << endl;
  return 0;
}
