#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int fir = 0, sec = 0;
  for (int i = s.size() - 1; i >= 0; i--) {
    if (!isdigit(s[i])) continue;
    if (i > 3 && s[i - 2] == '.') {
      sec += (s[i - 1] - '0') * 10 + s[i] - '0';
      i -= 3;
    }
    int pos = i;
    for (; pos >= 0 && (isdigit(s[pos]) || s[pos] == '.'); pos--)
      ;
    int t = 0;
    for (int j = pos + 1; j <= i; j++)
      if (isdigit(s[j])) t = t * 10 + s[j] - '0';
    fir += t;
    i = pos;
  }
  int t = floor(sec * 0.01);
  fir += t;
  vector<int> dol;
  int cnt = 0;
  if (!fir) printf("0");
  while (fir) {
    dol.push_back(fir % 10);
    fir /= 10;
    cnt++;
    if (cnt % 3 == 0 && fir) dol.push_back(-1);
  }
  for (int i = dol.size() - 1; i >= 0; i--) {
    if (dol[i] == -1)
      printf(".");
    else
      printf("%d", dol[i]);
  }
  if (sec % 100 == 0)
    ;
  else if (sec % 100 < 10)
    printf(".0%d\n", sec % 100);
  else
    printf(".%d\n", sec % 100);
  return 0;
}
