#include <bits/stdc++.h>
using namespace std;
string s;
long long cnt;
void print() {
  vector<long> p;
  p.push_back(cnt % 100);
  cnt /= 100;
  while (cnt) {
    p.push_back(cnt % 1000);
    cnt /= 1000;
  }
  if (p.size() > 1) {
    cout << p[p.size() - 1];
    p.pop_back();
    for (long i = p.size() - 1; i > 0; i--)
      if (p[i] >= 100)
        cout << '.' << p[i];
      else if (p[i] >= 10)
        cout << ".0" << p[i];
      else
        cout << ".00" << p[i];
  } else
    cout << 0;
  if (p[0])
    if (p[0] >= 10)
      cout << '.' << p[0];
    else
      cout << ".0" << p[0];
}
void pl(long b, long e) {
  long c = 0;
  for (long i = b; i <= e; i++)
    if (s[i] != '.') {
      c *= 10;
      c += s[i] - '0';
    }
  if (s[e - 2] != '.') c *= 100;
  cnt += c;
}
int main() {
  cin >> s;
  s = s + 'a';
  bool f = 0;
  long b, e;
  for (long i = 0; i < s.size(); i++)
    if (((s[i] >= '0') && (s[i] <= '9')) || (s[i] == '.'))
      if (f)
        e = i;
      else {
        b = i;
        e = i;
        f = 1;
      }
    else if (f) {
      pl(b, e);
      f = 0;
    }
  print();
  return 0;
}
