#include <bits/stdc++.h>
using namespace std;
int main() {
  long long sum = 0;
  string s;
  cin >> s;
  s += 'a';
  int now_number = 0, buf_number = 0, size_buf = 0, point = 0;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] >= 'a' && s[i] <= 'z') {
      now_number = now_number * pow(10, size_buf) + buf_number;
      buf_number = 0;
      if (size_buf != 2 || !point) {
        now_number *= 100;
      }
      size_buf = 0;
      sum += now_number;
      now_number = 0;
      point = 0;
    } else {
      if (s[i] == '.') {
        now_number = now_number * pow(10, size_buf) + buf_number;
        buf_number = 0;
        size_buf = 0;
        point = 1;
      } else {
        buf_number = buf_number * 10 + (s[i] - '0');
        size_buf++;
      }
    }
  }
  int kop = sum % 100;
  sum /= 100;
  if (sum == 0) {
    cout << "0." << kop / 10 << kop % 10;
    return 0;
  }
  vector<string> ss;
  while (sum != 0) {
    int tri = sum % 1000;
    sum /= 1000;
    string ans = "";
    if (sum != 0) {
      ans = (char)(tri % 10 + 48) + ans;
      tri /= 10;
      ans = (char)(tri % 10 + 48) + ans;
      tri /= 10;
      ans = (char)(tri % 10 + 48) + ans;
      tri /= 10;
    } else {
      ans = to_string(tri);
    }
    ss.push_back(ans);
  }
  reverse(ss.begin(), ss.end());
  for (int i = 0; i < ss.size(); ++i) {
    if (i == ss.size() - 1) {
      cout << ss[i];
    } else {
      cout << ss[i] << ".";
    }
  }
  if (kop != 0) {
    cout << "." << kop / 10 << kop % 10;
  }
  return 0;
}
