#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[1005], a[1005];
  long long i, j, l, d, k, num = 0, num1 = 0, ans1 = 0, ans = 0;
  bool f, g;
  scanf("%s", s);
  l = strlen(s);
  s[l] = 'a';
  f = g = 0;
  for (i = 0; i <= l; i++) {
    if ('0' <= s[i] && s[i] <= '9' && f == 0) {
      if (s[i - 1] == '.') {
        num1 = (s[i] - '0');
        f = 1;
        j = 1;
      } else {
        num = (s[i] - '0');
        j = 0;
        f = 1;
      }
    } else if ('0' <= s[i] && s[i] <= '9' && f == 1) {
      if (num1 > 0 && j < 2) {
        num1 = num1 * 10 + (s[i] - '0');
        j++;
      } else {
        if (s[i - 1] == '.' && g == 0) {
          j = 0;
          g = 1;
        }
        if (g == 1) {
          if (j < 2) {
            num1 = num1 * 10 + (s[i] - '0');
            j++;
          } else {
            num1 = num1 * 10 + (s[i] - '0');
            num = num * 1000 + num1;
            num1 = 0;
            j = 0;
            g = 0;
          }
        } else {
          num = num * 10 + (s[i] - '0');
          j++;
        }
      }
    } else if ('a' <= s[i] && s[i] <= 'z' && f == 1) {
      if (num1 >= 100) {
        num = num * 1000 + num1;
        num1 = 0;
      }
      ans += num;
      ans1 += num1;
      f = g = 0;
      j = 0;
      num = num1 = 0;
    } else if (g == 1 && s[i] == '.') {
      g = 0;
      j = 0;
      num = num * 1000 + num1;
      num1 = 0;
    }
  }
  ans += ans1 / 100;
  ans1 = ans1 % 100;
  k = 0;
  j = 0;
  while (ans) {
    a[k++] = (ans % 10) + '0';
    j++;
    ans /= 10;
    if (j == 3 && ans > 0) {
      a[k++] = '.';
      j = 0;
    }
  }
  l = k;
  j = l - 1;
  l /= 2;
  for (i = 0; i < l; i++, j--) {
    swap(a[i], a[j]);
  }
  if (ans1 != 0) a[k++] = '.';
  a[k] = 0;
  if (a[0] != '.')
    printf("%s", a);
  else if (ans1 != 0)
    printf("0%s", a);
  else
    printf("0\n");
  if (ans1 > 0) {
    if (ans1 < 10) printf("0");
    printf("%lld\n", ans1);
  }
  return 0;
}
