#include <bits/stdc++.h>
using namespace std;
long long cvt(string s) {
  int len = s.length();
  long long ret = 0;
  for (int i = 0; i < len; i++) {
    if (i != len && s[i] != '.') ret += (int)s[i] - '0';
    if (i != len - 1 && s[i] != '.') ret *= 10;
  }
  if (len > 4 && s[len - 4] == '.')
    ret *= 100;
  else if (len < 4)
    ret *= 100;
  return ret;
}
int main() {
  string s;
  cin >> s;
  int len = s.length();
  string p = "";
  long long total = 0;
  for (int i = 0; i <= len; i++) {
    if (i == len || (s[i] >= 'a' && s[i] <= 'z')) {
      if (p != "") {
        total += cvt(p);
      }
      p = "";
    } else {
      p += s[i];
    }
  }
  stack<long long> st;
  if (total >= 100) {
    st.push(total % 100);
    total /= 100;
    while (total > 0) {
      st.push(total % 1000);
      total /= 1000;
    }
    cout << st.top();
    st.pop();
    while (!st.empty()) {
      if (st.size() > 1 && st.top() >= 100)
        cout << '.' << st.top();
      else if (st.size() > 1 && st.top() >= 10)
        cout << '.' << "0" << st.top();
      else if (st.size() > 1)
        cout << '.' << "00" << st.top();
      else if (st.top() >= 10)
        cout << '.' << st.top();
      else if (st.top() >= 1)
        cout << '.' << "0" << st.top();
      st.pop();
    }
    cout << endl;
  } else {
    cout << "0.";
    if (total < 10)
      cout << "0" << total << endl;
    else
      cout << total << endl;
  }
}
