#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int a[N];
int main() {
  char s[1011];
  scanf(" %s", s);
  int len = strlen(s);
  int cents = 0;
  long long dollars = 0;
  for (int i = 0; i < len; i++) {
    if (isalpha(s[i])) continue;
    bool dot = 0;
    int t = 0;
    while (i < len && !isalpha(s[i])) {
      if (s[i] == '.')
        dot = 1;
      else if (dot && s[i - 1] == '.' && (i + 2 == len || isalpha(s[i + 2]))) {
        cents += 10 * (s[i] - '0') + (s[i + 1] - '0');
        i += 1;
      } else
        t = t * 10 + (s[i] - '0');
      ++i;
    }
    --i;
    dollars += t;
  }
  dollars += (cents / 100);
  cents %= 100;
  string c, d;
  if (cents > 0 && cents < 10) {
    c += '0';
    c += char(cents + '0');
  } else if (cents >= 10) {
    c += char(cents / 10 + '0');
    c += char(cents % 10 + '0');
  }
  if (dollars == 0) {
    d = "0";
  }
  int cnt = 0;
  while (dollars) {
    ++cnt;
    d = char(dollars % 10 + '0') + d;
    dollars /= 10;
    if (cnt % 3 == 0 && dollars) {
      d = '.' + d;
    }
  }
  printf("%s%c%s", d.c_str(), c != "" ? '.' : '\n', c.c_str());
}
