#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pli = pair<ll, int>;
const int INF = 0x3f3f3f3f, N = 2e5 + 5;
const ll LINF = 1e18 + 5;
string s;
ll x, y;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> s;
  for (int i = 0; i < (int)s.size(); i++) {
    if (isalpha(s[i])) continue;
    string t;
    while (isdigit(s[i]) || s[i] == '.') {
      t += s[i];
      i++;
    }
    int n = (int)t.size();
    if (n >= 3 && t[n - 3] == '.') {
      y += (t[n - 2] - '0') * 10 + t[n - 1] - '0';
      n -= 3;
    }
    ll d = 1;
    for (int i = n - 1; i >= 0; i--) {
      if (t[i] == '.') continue;
      x += d * (t[i] - '0');
      d *= 10;
    }
  }
  x += y / 100;
  y %= 100;
  string t;
  int tmp = 0;
  if (!x) t += '0';
  while (x) {
    t += x % 10 + '0';
    x /= 10;
    tmp++;
    if (tmp == 3) {
      if (x) t += '.';
      tmp = 0;
    }
  }
  reverse(begin(t), end(t));
  if (y) {
    t += '.';
    if (y < 10)
      t += '0', t += y + '0';
    else
      t += y / 10 + '0', t += y % 10 + '0';
  }
  cout << t;
  return 0;
}
