#include <bits/stdc++.h>
using namespace std;
char s[1005];
int main() {
  gets(s);
  long long ans = 0, x = 0;
  for (int i = 0; s[i]; ++i) {
    if (s[i] >= 'a')
      ans += x, x = 0;
    else if (s[i] != '.')
      x *= 10, x += (s[i] - '0') * 100;
    else if (s[i + 3] < '0' || s[i + 3] > '9') {
      x += (s[i + 1] - '0') * 10 + s[i + 2] - '0';
      i += 2;
    }
  }
  ans += x;
  int a[15], n = 0, t = ans / 100;
  ans %= 100;
  if (!t) putchar('0');
  while (t) {
    a[++n] = t % 10;
    t /= 10;
  }
  while (n) {
    putchar(a[n--] + 48);
    if (n && n % 3 == 0) putchar('.');
  }
  if (ans) {
    putchar('.');
    putchar(ans / 10 + 48);
    putchar(ans % 10 + 48);
  }
  putchar('\n');
  return 0;
}
