#include <bits/stdc++.h>
using namespace std;
void init_ios() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
}
string s;
long long dol, cen;
void go(string s) {
  if (s.size() >= 3 && s[s.size() - 3] == '.') {
    cen += stoi(s.substr(s.size() - 2));
    s.pop_back();
    s.pop_back();
    s.pop_back();
  }
  long long ile = 0;
  for (long long i = 0; i < s.size(); ++i) {
    if (s[i] != '.') ile = 10 * ile + (s[i] - '0');
  }
  dol += ile;
}
void printDol() {
  string st = to_string(dol), res = "";
  long long len = st.size();
  for (long long i = len - 1; i >= 0; --i) {
    res += st[i];
    if (i != 0 && (len - i) % 3 == 0) res += ".";
  }
  for (long long i = res.size() - 1; i >= 0; --i) cout << res[i];
}
signed main() {
  init_ios();
  cin >> s;
  for (long long i = 0; i < s.size(); ++i) {
    while (i < s.size() && s[i] < '0' || s[i] > '9') ++i;
    string tmp = "";
    while (i < s.size() && ((s[i] >= '0' && s[i] <= '9') || s[i] == '.'))
      tmp += s[i++];
    if (tmp != "") {
      go(tmp);
    }
  }
  dol += cen / 100;
  cen %= 100;
  printDol();
  if (cen != 0) {
    cout << ".";
    if (cen >= 10)
      cout << cen << "\n";
    else
      cout << "0" << cen << "\n";
    return 0;
  }
  cout << "\n";
}
