#include <bits/stdc++.h>
using namespace std;
string s, ss;
long long allsum, allsumkop;
bool pricedig(char c) {
  if (c == '.') return true;
  if (c >= '0' && c <= '9') return true;
  return false;
}
void addtores(string price) {
  long long r, rkop;
  long long pl, i;
  pl = price.length();
  r = 0;
  rkop = 0;
  for (i = 0; i < pl; i++)
    if (price[i] >= '0' && price[i] <= '9') r = r * 10 + price[i] - '0';
  if (pl > 2 && price[pl - 3] == '.') {
    rkop = r % 100;
    r /= 100;
  }
  allsum += r;
  allsumkop += rkop;
}
void Lead0(long long p) {
  if (p > 99)
    cout << p;
  else if (p > 9)
    cout << "0" << p;
  else
    cout << "00" << p;
}
int main() {
  cin >> s;
  cout << fixed;
  cout.precision(2);
  s = s + '$';
  long long n = s.length();
  allsum = 0;
  allsumkop = 0;
  ss = "";
  for (long long i = 1; i < n; i++) {
    if (pricedig(s[i])) {
      ss = ss + s[i];
    } else {
      if (pricedig(s[i - 1])) {
        addtores(ss);
      }
      ss = "";
    }
  }
  allsum += allsumkop / 100;
  allsumkop %= 100;
  long long res = allsum;
  long long d1, d2, d3, d4;
  d1 = res / 1000000000;
  res %= 1000000000;
  d2 = res / 1000000;
  res %= 1000000;
  d3 = res / 1000;
  res %= 1000;
  d4 = res;
  long long flag;
  flag = 0;
  if (d1 > 0) {
    flag = 1;
    cout << d1;
    cout << '.';
  }
  if (d2 > 0 || flag == 1) {
    if (flag == 0)
      cout << d2;
    else
      Lead0(d2);
    cout << '.';
    flag = 1;
  }
  if (d3 > 0 || flag == 1) {
    if (flag == 0)
      cout << d3;
    else
      Lead0(d3);
    cout << '.';
    flag = 1;
  }
  if (flag == 0)
    cout << d4;
  else
    Lead0(d4);
  flag = 1;
  if (allsumkop > 9)
    cout << "." << (allsumkop);
  else if (allsumkop > 0)
    cout << ".0" << (allsumkop);
  cout << endl;
  return 0;
}
