#include <bits/stdc++.h>
using namespace std;
const int N = 1000050;
const int INF = 1e9;
const int MOD = 1e9 + 7;
string s;
int main() {
  ios::sync_with_stdio(0);
  cin >> s;
  long long ans = 0;
  int n = s.length();
  bool ok = true;
  for (int i = 0; i < n; i++) {
    if (isdigit(s[i])) {
      long long x = 0;
      while (i < n && (isdigit(s[i]) || s[i] == '.')) {
        if (s[i] != '.') x = x * 10 + (s[i] - '0');
        i++;
      }
      if (i - 3 < 0 || s[i - 3] != '.') {
        x = x * 100;
      } else
        ok = false;
      ans += x;
    }
  }
  int k = 1;
  string t;
  if (ok || ans % 100 == 0) {
    k = 3;
    ans /= 100;
  }
  while (ans > 0) {
    k++;
    t = char('0' + ans % 10) + t;
    ans /= 10;
    if (ans > 0 || k <= 3)
      if (k % 3 == 0) t = '.' + t;
  }
  while (k < 4) {
    k++;
    t = '0' + t;
    if (k % 3 == 0) t = '.' + t;
    ans /= 10;
  }
  cout << t;
  return 0;
}
