#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long sum;
  long long dob;
  sum = 0;
  dob = 0;
  int n = s.length();
  bool ch = false;
  string h;
  for (int i = 0; i < n; i++) {
    if ((s[i] >= '0' && s[i] <= '9') || s[i] == '.') {
      if (ch) {
        h = h + s[i];
      } else {
        ch = true;
        h = s[i];
      }
    } else {
      if (ch) {
        if (h.size() > 3 && h[h.size() - 3] == '.') {
          int num = 0;
          int cnt = 0;
          num = (int)(h[h.size() - 2] - 48) * 10 + (int)(h[h.size() - 1] - 48);
          dob += num;
          num = 0;
          for (int i = 0; i < h.size() - 3; i++) {
            if (h[i] != '.') {
              num = 10 * num + (int)(h[i] - 48);
            }
          }
          sum += num;
        } else {
          int num = 0;
          int cnt = 0;
          for (int i = 0; i < h.size(); i++) {
            if (h[i] != '.') {
              num = 10 * num + (int)(h[i] - 48);
            }
          }
          sum += num;
        }
        ch = false;
      }
    }
  }
  if (ch) {
    if (h.size() > 3 && h[h.size() - 3] == '.') {
      int num = 0;
      int cnt = 0;
      num = (int)(h[h.size() - 2] - 48) * 10 + (int)(h[h.size() - 1] - 48);
      dob += num;
      num = 0;
      for (int i = 0; i < h.size() - 3; i++) {
        if (h[i] != '.') {
          num = 10 * num + (int)(h[i] - 48);
        }
      }
      sum += num;
    } else {
      int num = 0;
      int cnt = 0;
      for (int i = 0; i < h.size(); i++) {
        if (h[i] != '.') {
          num = 10 * num + (int)(h[i] - 48);
        }
      }
      sum += num;
    }
    ch = false;
  }
  sum += dob / 100;
  string now = "";
  int cntt = 0;
  if (sum == 0) {
    cout << "0";
  }
  while (sum != 0) {
    now = (char)('0' + sum % 10) + now;
    cntt++;
    sum /= 10;
    if (cntt % 3 == 0 && sum != 0) {
      now = '.' + now;
    }
  }
  cout << now;
  if (dob % 100 != 0) {
    cout << ".";
    if (dob % 100 < 10) {
      cout << "0";
    }
    cout << dob % 100;
  }
  return 0;
}
