#include <bits/stdc++.h>
int n, m, k, t;
char a[100005];
double ans, now, ca;
int main() {
  int i, j;
  scanf("%s", a);
  int len = strlen(a);
  a[len] = 'a';
  for (i = 0; i <= len; i++) {
    if (isdigit(a[i])) {
      j = i;
      now = 0, ca = 0;
      int cnt = 0;
      while (isdigit(a[j]) || a[j] == '.') j++;
      while (a[j - 1] != '.' && j - 1 > i) cnt++, j--;
      if (cnt == 2 && j - 1 > i) {
        now += 0.1 * (a[j] - '0') + 0.01 * (a[j + 1] - '0');
        for (k = i; k <= j - 1; k++)
          if (isdigit(a[k])) ca = ca * 10 + a[k] - '0';
      } else if (cnt == 3 && j - 1 > i) {
        for (k = i; k <= j + 2; k++)
          if (isdigit(a[k])) ca = ca * 10 + a[k] - '0';
      } else {
        for (k = i; isdigit(a[k]); k++) ca = ca * 10 + a[k] - '0';
      }
      ca += now;
      ans += ca;
      while (isdigit(a[j])) j++;
      i = j;
    }
  }
  sprintf(a, "%.2f", ans);
  len = strlen(a);
  for (i = 0; i <= len - 4; i++) {
    printf("%c", a[i]);
    if (len - 4 - i > 0 && (len - 4 - i) % 3 == 0) printf(".");
  }
  if (a[len - 1] > '0' || a[len - 2] > '0')
    printf(".%c%c\n", a[len - 2], a[len - 1]);
  return 0;
}
