#include <bits/stdc++.h>
using namespace std;
string s;
long long sum, cur;
int main() {
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] >= 'a' && s[i] <= 'z')
      continue;
    else {
      bool ok = false, OKTRUE = false;
      cur = 0;
      for (int j = i; j < s.size(); j++) {
        if (s[j] >= 'a' && s[j] <= 'z') break;
        if (s[j] == '.') ok = true;
        if (s[j] == '.' && s[j + 3] >= 'a' && s[j + 3] <= 'z') {
          cur = cur * 100 + (s[j + 1] - '0') * 10 + (s[j + 2] - '0') * 1;
          j = j + 2;
          OKTRUE = true;
        }
        if (s[j] == '.' && j + 3 == s.size()) {
          cur = cur * 100 + (s[j + 1] - '0') * 10 + (s[j + 2] - '0') * 1;
          j = j + 2;
          OKTRUE = true;
        }
        if (s[j] == '.' && s[j + 3] >= '0' && s[j + 3] <= '9') {
          cur = cur * 1000 + (s[j + 1] - '0') * 100 + (s[j + 2] - '0') * 10 +
                (s[j + 3] - '0') * 1;
          j = j + 3;
        }
        if (!ok) {
          cur = cur * 10 + (s[j] - '0');
        }
        i = j;
      }
      if (!OKTRUE) cur = cur * 100;
      sum += cur;
    }
  }
  if (sum % 100 == 0) s = "";
  if (sum % 100 != 0) {
    s = ".";
    s += sum % 100 / 10 + '0';
    s += sum % 10 + '0';
  }
  int a, k = 0;
  sum = sum / 100;
  if (sum == 0) s = "0" + s;
  while (sum > 0) {
    a = sum % 10;
    k++;
    sum = sum / 10;
    char c = a + '0';
    s = c + s;
    if (k == 3) {
      k = 0;
      if (sum > 0) s = "." + s;
    }
  }
  cout << s << endl;
}
