#include <bits/stdc++.h>
using namespace std;
void task1() {
  int a, b;
  cin >> a >> b;
  vector<int> ans;
  ans.push_back(b);
  int count = 1;
  string s = "YES";
  while (b != a) {
    if (b % 10 == 3 || b % 10 == 5 || b % 10 == 7 || b % 10 == 9) {
      s = "NO";
      ans.clear();
      break;
    }
    if (b < a) {
      s = "NO";
      ans.clear();
      break;
    }
    if (b % 2 == 0) {
      count++;
      b /= 2;
      ans.push_back(b);
      continue;
    }
    if (b % 10 == 1) {
      count++;
      b /= 10;
      ans.push_back(b);
      continue;
    }
  }
  reverse(ans.begin(), ans.end());
  cout << s << endl;
  if (s != "NO") {
    cout << count << endl;
  }
  for (auto i : ans) {
    cout << i << " ";
  }
}
void get_ans(string s, int &r, int &cop) {
  int count = 0;
  int cop_pos = s.length();
  bool flag = false;
  int pcount = 0;
  for (int i = s.length() - 1; i >= 0; i--) {
    if (isdigit(s[i])) {
      count++;
    }
    if (s[i] == '.' && count == 2) {
      cop += stoi(s.substr(i + 1, 2));
      cop_pos = i;
      flag = true;
    }
    if (s[i] == '.') {
      s.erase(i, 1);
      pcount++;
    }
  }
  if (flag) {
    r += stoi(s.substr(0, cop_pos - pcount + 1));
  } else {
    r += stoi(s.substr(0, cop_pos));
  }
}
void task2() {
  string s;
  cin >> s;
  int sum = 0;
  int start_i = 0, end_i = 0;
  bool flag = false;
  int r = 0;
  int cop = 0;
  for (int i = 0; i < s.length(); i++) {
    if (isdigit(s[i]) && !flag) {
      start_i = i;
      flag = true;
    }
    if (isdigit(s[i]) && (isalpha(s[i + 1]) || i == s.length() - 1)) {
      end_i = i + 1;
      if (end_i - start_i == 1) {
        get_ans(s.substr(start_i, 1), r, cop);
      } else {
        get_ans(s.substr(start_i, end_i - start_i), r, cop);
      }
      flag = false;
    }
  }
  r += cop / 100;
  cop %= 100;
  string rs = to_string(r);
  int count = 0;
  for (int i = rs.length() - 1; i >= 0; i--) {
    count++;
    if (count == 3 && i != 0) {
      rs.insert(i, 1, '.');
      count = 0;
      continue;
    }
  }
  cout << rs;
  if (cop != 0) {
    cout << '.';
    if (cop < 10) {
      cout << 0;
    }
    cout << cop;
  }
}
int main() {
  task2();
  return 0;
}
