#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
string s;
int main(int argc, char** argv) {
  cin >> s;
  long long res = 0;
  const char* c = s.c_str();
  int i = 0;
  while (c[i]) {
    while (!(('0' <= c[i] && c[i] <= '9') || c[i] == '.')) i++;
    long long number = 0;
    while ((('0' <= c[i] && c[i] <= '9') || c[i] == '.')) {
      if (c[i] != '.') {
        number = number * 10 + (c[i] - '0');
      }
      i++;
    }
    if (i <= 2 || c[i + ~2] != '.') {
      number *= 100;
    }
    res += number;
  }
  string resstr = "";
  if (res % 100) {
    resstr = (char)('0' + res % 10) + resstr;
    res /= 10;
    resstr = (char)('0' + res % 10) + resstr;
    res /= 10;
    resstr = '.' + resstr;
  } else
    res /= 100;
  int dot = 0;
  while (res) {
    resstr = (char)('0' + res % 10) + resstr;
    res /= 10;
    dot++;
    if (dot % 3 == 0 && res != 0) {
      resstr = '.' + resstr;
    }
  }
  if (resstr[0] == '.') resstr = '0' + resstr;
  cout << resstr << endl;
  return 0;
}
