#include <bits/stdc++.h>
using namespace std;
char s[1010];
long long t;
int ok;
int l;
int x;
long long ans;
int main() {
  scanf("%s", s);
  int len = strlen(s);
  ans = 0;
  for (int i = 0; i < len; i++) {
    if (isalpha(s[i])) {
      if (t) {
        if (l == 2) {
          ans += t;
        } else
          ans += t * 100;
      }
      t = 0;
      x = 0;
      l = 0;
    } else {
      if (isdigit(s[i])) {
        t = t * 10 + s[i] - '0';
        if (x) {
          l++;
        }
      } else {
        x = 1;
        l = 0;
      }
    }
  }
  if (t) {
    if (l == 2) {
      ans += t;
    } else
      ans += t * 100;
  }
  long long temp = ans / 100;
  long long temp1 = ans % 100;
  len = 0;
  string S = "";
  if (!temp) S = S + '0';
  while (temp) {
    if (len && len % 3 == 0) {
      S = S + '.';
    }
    char c = '0' + temp % 10;
    S = S + c;
    temp /= 10;
    len++;
  }
  reverse(S.begin(), S.end());
  cout << S;
  if (temp1) {
    printf(".%.2I64d", temp1);
  }
  return 0;
}
