#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long sum = 0;
  int len = s.length();
  for (int i = 0; i < len; i++) {
    if (!isdigit(s[i])) continue;
    string t;
    while ((isdigit(s[i]) || s[i] == '.') && i < len) {
      t += s[i];
      i++;
    }
    int len2 = t.length();
    long long x = 0;
    long long y = 0;
    if (t[len2 - 3] == '.') {
      x = (t[len2 - 2] - '0') * 10 + t[len2 - 1] - '0';
      long long K = 100;
      for (int j = len2 - 3; j >= 0; j--) {
        if (isdigit(t[j])) {
          y += (K * (t[j] - '0'));
          K = K * 10;
        }
      }
    } else {
      long long K = 100;
      for (int j = len2 - 1; j >= 0; j--) {
        if (isdigit(t[j])) {
          y += (K * (t[j] - '0'));
          K = K * 10;
        }
      }
    }
    sum += x;
    sum += y;
  }
  string E;
  while (sum > 0) {
    E += (sum % 10 + '0');
    sum = sum / 10;
  }
  if (E.length() == 1) E += '0';
  if (E.length() == 0) E += "00";
  string G;
  if (E[0] != '0' || E[1] != '0') {
    G += '.';
    G += E[1];
    G += E[0];
  }
  string f;
  int p = 0;
  for (int i = 2; i < E.length(); i++) {
    p++;
    f += (E[i]);
    if (p == 3) {
      if (i != E.length() - 1) {
        f += '.';
      }
      p = 0;
    }
  }
  len = f.length();
  for (int i = 0; i < len / 2; i++) swap(f[i], f[len - i - 1]);
  if (len == 0) f += '0';
  cout << f;
  if (G.length() != 0) cout << G;
}
