#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int n, i, j, k;
  cin >> s;
  n = s.length();
  double ans = 0;
  for (i = 0; i < n; i++) {
    if (isalpha(s[i])) continue;
    double x = 0;
    bool c = 0;
    while (i < n && !c) {
      if (isalpha(s[i])) {
        c = 1;
        break;
      }
      if (s[i] == '.') {
        i++;
        break;
      }
      x = x * 10 + s[i] - 48;
      i++;
    }
    int l = 0;
    double y = 0;
    while (i < n && !c) {
      if (isalpha(s[i])) {
        c = 1;
        break;
      }
      if (s[i] == '.') {
        i++;
        break;
      }
      y = y * 10 + s[i] - 48;
      i++;
      l++;
    }
    if (l == 3)
      x = x * 1000 + y;
    else {
      y /= 100;
      x += y;
    }
    l = 0;
    y = 0;
    while (i < n && !c) {
      if (isalpha(s[i])) {
        c = 1;
        break;
      }
      if (s[i] == '.') {
        i++;
        break;
      }
      y = y * 10 + s[i] - 48;
      i++;
      l++;
    }
    if (l == 3)
      x = x * 1000 + y;
    else {
      y /= 100;
      x += y;
    }
    ans += x;
  }
  int sh = ans;
  double d = ans - (double)(sh);
  int l = 0;
  stack<char> st;
  if (sh == 0) st.push(48);
  while (sh) {
    if (l == 3) {
      l = 0;
      st.push('.');
    }
    st.push(sh % 10 + 48);
    sh /= 10;
    l++;
  }
  while (!st.empty()) {
    cout << st.top();
    st.pop();
  }
  d = d * 100 + 0.0000999999;
  int g = d;
  if (g) {
    cout << '.';
    if (g <= 9)
      cout << '0' << g;
    else
      cout << g;
  }
  return 0;
}
