#include <bits/stdc++.h>
using namespace std;
void dx(char *z) {
  char *ps, *pz, temp;
  ps = z;
  pz = z;
  while (*ps != '\0') ps++;
  ps--;
  while (pz < ps) {
    temp = *ps;
    *ps = *pz;
    *pz = temp;
    pz++;
    ps--;
  }
}
int main() {
  char a[1005] = {0};
  while (scanf("%s", &a) != EOF) {
    int len = strlen(a);
    int t = 0;
    char ch[1005] = {0};
    char ss[1005] = {0};
    double x, sum = 0;
    for (int i = 0; i <= len; i++)
      if ((a[i] >= '0' && a[i] <= '9') ||
          ((a[i] == '.') && a[i + 3] >= 'a' && a[i + 3] <= 'z') ||
          ((a[i] == '.') && (a[i + 3] == '\0'))) {
        ss[t++] = a[i];
        if ((a[i + 1] >= 'a' && a[i + 1] <= 'z') || a[i + 1] == '\0')
          ss[t++] = ' ';
      }
    x = (double)(ss[0] - '0');
    for (int j = 1; j < t; j++) {
      if (t == 2) {
        sum = x;
        continue;
      }
      if (ss[j] == '.' && ss[j + 3] != ' ')
        continue;
      else if ((ss[j] == '.' && ss[j + 3] == ' ') ||
               (ss[j] == '.' && ss[j + 3] == ' ')) {
        x = x + (ss[++j] - '0') / 10.0 + (ss[++j] - '0') / 100.0;
        continue;
      }
      if (ss[j] == ' ') {
        sum += x;
        x = (double)(ss[j + 1] - '0');
        j++;
        continue;
      }
      x = x * 10 + (double)(ss[j] - '0');
    }
    long long int sam = floor(sum);
    sum = (sum - sam) * 100;
    sam = sam * 100 + (int)(sum + 0.5);
    int q, m = 0;
    if (sam == 0)
      printf("0\n");
    else if (sam % 100 != 0) {
      if (sam >= 100) {
        for (q = 0; sam / 10 != 0;) {
          if ((q == 2 || m == 3)) {
            ch[q++] = '.';
            m = 0;
            continue;
          }
          ch[q] = (sam % 10 + '0');
          q++;
          sam = sam / 10;
          if (q > 2) m++;
        }
        if (m == 3 || q == 2) {
          ch[q++] = '.';
          ch[q] = (sam % 10 + '0');
        } else
          ch[q] = (sam % 10 + '0');
        dx(ch);
        printf("%s\n", ch);
      } else if (sam >= 10)
        printf("0.%lld\n", sam % 100);
      else
        printf("0.0%lld\n", sam % 100);
    } else {
      if (sam >= 100000) {
        sam = sam / 100;
        for (q = 0; sam / 10 != 0;) {
          if (m == 3) {
            ch[q++] = '.';
            m = 0;
            continue;
          }
          ch[q] = (sam % 10 + '0');
          q++;
          sam = sam / 10;
          m++;
        }
        if (m == 3) {
          ch[q++] = '.';
          ch[q] = (sam % 10 + '0');
        } else
          ch[q] = (sam % 10 + '0');
        dx(ch);
        printf("%s\n", ch);
      } else
        printf("%lld\n", sam / 100);
    }
    memset(a, 0, sizeof(a));
    memset(ss, 0, sizeof(ss));
    memset(ch, 0, sizeof(ch));
  }
  return 0;
}
