#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long ans = 0;
  for (long long i = 0; i < s.size() + 1; i++) {
    bool dec = false;
    if ((s[i] >= 'a' && i != 0) || i == s.size()) {
      if (s[i - 3] == '.') {
        dec = true;
      }
      long long p = 0;
      if (dec == false) {
        p += 2;
      }
      for (long long j = i - 1; j >= 0; j--) {
        if (s[j] >= 'a') {
          break;
        }
        if (s[j] == '.') {
          continue;
        }
        ans += (s[j] - '0') * pow(10, p);
        p++;
      }
    }
  }
  if (ans < 10) {
    cout << "0.0" << ans << '\n';
    return 0;
  }
  if (ans < 100) {
    cout << "0." << ans << '\n';
    return 0;
  }
  if (ans % 100 == 0) {
    string answer;
    ans /= 100;
    for (long long i = 1; ans > 0; i++) {
      if (i % 4 == 0) {
        answer.push_back('.');
        continue;
      }
      answer.push_back((ans % 10) + '0');
      ans /= 10;
    }
    for (long long i = answer.size() - 1; i >= 0; i--) {
      cout << answer[i];
    }
    cout << '\n';
  } else {
    long long d = ans % 100;
    ans /= 100;
    string answer;
    for (long long i = 1; ans > 0; i++) {
      if (i % 4 == 0) {
        answer.push_back('.');
        continue;
      }
      answer.push_back((ans % 10) + '0');
      ans /= 10;
    }
    for (long long i = answer.size() - 1; i >= 0; i--) {
      cout << answer[i];
    }
    if (d < 10) {
      cout << ".0" << d;
    } else {
      cout << "." << d;
    }
    cout << '\n';
  }
}
