#include <bits/stdc++.h>
using namespace std;
static void g(int64_t x) {
  if (x >= 1000) {
    g(x / 1000);
    putchar('.');
    printf("%03d", (int)(x % 1000));
  } else {
    printf("%d", (int)x);
  }
}
static int f(const char *s, int n) {
  auto r = 0;
  for (auto i = 0; i < n; i++) {
    if (isdigit(s[i])) {
      r = r * 10 + s[i] - '0';
    }
  }
  if (!(n > 3 && s[n - 3] == '.')) r *= 100;
  return r;
}
int main() {
  int64_t a = 0;
  string s;
  cin >> s;
  const int n = s.size();
  for (auto i = 0; i < n;) {
    while (isalpha(s[i])) i++;
    auto j = i + 1;
    while (j < n && !isalpha(s[j])) j++;
    a += f(s.c_str() + i, j - i);
    i = j;
  }
  int b = a % 100;
  a /= 100;
  g(a);
  if (b != 0) printf(".%02d", b);
  putchar('\n');
  return 0;
}
