#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long sum = 0, i = 0, num = 0;
  bool kop = false;
  while (i < s.length()) {
    while (((s[i] >= '0' && s[i] <= '9') || s[i] == '.') && i < s.length()) {
      if (s[i] == '.' &&
          !((s[i + 3] <= '9' && s[i + 3] >= '0') || s[i + 3] == '.')) {
        kop = true;
      } else if (s[i] != '.')
        num = num * 10 + (s[i] - '0');
      i++;
    }
    if (!kop) num *= 100;
    sum += num;
    if (s[i] >= 'a' && s[i] <= 'z') {
      num = 0;
      kop = false;
    }
    i++;
  }
  string ans = to_string(sum);
  if (sum < 10)
    ans = "00" + ans;
  else if (sum < 100)
    ans = '0' + ans;
  for (int i = ans.length() - 2; i > 0; i -= 3)
    ans = ans.substr(0, i) + '.' + ans.substr(i);
  if (ans.substr(ans.length() - 2) == "00")
    ans = ans.substr(0, ans.length() - 3);
  cout << ans;
}
