#include <bits/stdc++.h>
using namespace std;
int main() {
  string buf, s;
  cin >> s;
  unsigned int i = 1;
  vector<string> x;
  while (i <= s.length()) {
    if (int(s[i]) >= 48 && int(s[i]) <= 57) {
      buf = "";
      while (((int(s[i]) >= 48 && int(s[i]) <= 57) || int(s[i]) == 46) &&
             i <= s.length()) {
        buf += s[i];
        i++;
      }
      if (int(buf[buf.length() - 3]) != 46) buf += ".00";
      x.push_back(buf);
    }
    i++;
  }
  buf = x.back();
  x.pop_back();
  long long res = 0;
  while (buf.length() > 0) {
    if (int(buf[0]) != 46) res = 10 * res + int(buf[0]) - 48;
    buf = buf.substr(1, buf.length());
  }
  while (x.size() > 0) {
    buf = x.back();
    long long res2 = 0;
    while (buf.length() > 0) {
      if (int(buf[0]) != 46) res2 = 10 * res2 + int(buf[0]) - 48;
      buf = buf.substr(1, buf.length());
    }
    res += res2;
    x.pop_back();
  }
  res = res * 10;
  buf = "";
  while (res != 0) {
    if (buf.length() % 4 == 3) buf = "." + buf;
    buf = char(res % 10 + 48) + buf;
    res = res / 10;
  }
  buf = buf.substr(0, buf.length() - 1);
  switch (buf.length()) {
    case 1: {
      buf = "0.0" + buf;
      break;
    }
    case 2: {
      buf = "0." + buf;
      break;
    }
  }
  if (int(buf[buf.length() - 1]) == 48 && int(buf[buf.length() - 2]) == 48)
    buf = buf.substr(0, buf.length() - 3);
  cout << buf;
  return 0;
}
