#include <bits/stdc++.h>
using namespace std;
char s[10005];
int main() {
  long long dol = 0, cen = 0;
  cin >> s;
  char num[10005];
  int len = strlen(s);
  int i, j;
  for (i = 0; i < len; i++) {
    if (s[i] <= 'z' && s[i] >= 'a') continue;
    memset(num, 0, sizeof(num));
    for (j = i; j < len; j++) {
      if (s[j] <= 'z' && s[j] >= 'a') {
        num[j - i] = '\0';
        break;
      }
      num[j - i] = s[j];
    }
    i = j - 1;
    long long dolt = 0, cent = 0;
    int len1 = strlen(num);
    if (num[len1 - 3] == '.') {
      cent += (int)(num[len1 - 1] - '0');
      cent += ((int)(num[len1 - 2] - '0')) * 10;
      cen += cent;
      for (int k = 0; k < len1 - 3; k++) {
        if (num[k] == '.') continue;
        dolt = dolt * 10 + (int)(num[k] - '0');
      }
      dol += dolt;
    } else {
      for (int k = 0; k < len1; k++) {
        if (num[k] == '.') continue;
        dolt = dolt * 10 + (int)(num[k] - '0');
      }
      dol += dolt;
    }
  }
  dol += cen / 100;
  cen %= 100;
  int re1[1000], ct1 = 0;
  memset(re1, 0, sizeof(re1));
  if (dol == 0)
    cout << "0";
  else {
    while (dol != 0) {
      re1[ct1++] = dol % 10;
      dol /= 10;
    }
  }
  int dian = 0;
  for (int k = ct1 - 1; k >= 0; k--) {
    dian++;
    cout << re1[k];
    if ((ct1 - dian) % 3 == 0 && (ct1 - dian) != 0) {
      cout << ".";
    }
  }
  if (cen != 0) cout << ".";
  if (cen != 0) {
    if (cen < 10) {
      cout << "0" << cen;
    } else {
      cout << cen / 10 << cen % 10;
    }
  }
  cout << endl;
  return 0;
}
