#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e18;
const double eps = 1e-10;
const int inf = 0x3f3f3f3f;
const int mif = 0xcfcfcfcf;
const double PI = 3.14159265358979323846264338;
long long mul_mod(long long first, long long second) {
  long long t = 0;
  while (second) {
    if (second & 1) t = (t + first) % mod;
    first = (first + first) % mod;
    second >>= 1;
  }
  return t;
}
long long pow_mod(long long first, long long second) {
  long long t = 1;
  while (second) {
    if (second & 1) t = mul_mod(t, first);
    first = mul_mod(first, first);
    second >>= 1;
  }
  return t;
}
long long quick_pow(long long first, long long second) {
  long long t;
  for (t = 1; second; second >>= 1, first *= first)
    if (second & 1) t *= first;
  return t;
}
long long gcd(long long first, long long second) {
  return second ? gcd(second, first % second) : first;
}
double LG(double s, double k) { return log(k) / log(s); }
long long read() {
  long long c = 0, f = 1ll;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    c = c * 10 + ch - '0';
    ch = getchar();
  }
  return c * f;
}
const int N = 1100000;
string s, num;
long long sum, tmp;
int main() {
  cin >> s;
  for (auto &i : s) {
    if (i >= 'a' && i <= 'z') i = ' ';
  }
  stringstream ss(s), tr;
  tr.setf(ios::fixed, ios::floatfield);
  tr.precision(2);
  while (ss >> num) {
    while (1) {
      int idx = num.find('.');
      if (idx == string::npos) num += "00";
      if (idx == num.size() - 3) {
        num.erase(idx, 1);
        idx = string::npos;
      }
      if (idx == string::npos) {
        tr.clear();
        tr << num;
        tr >> tmp;
        sum += tmp;
        break;
      }
      num = num.erase(idx, 1);
    }
  }
  tr.clear();
  tr << (double)sum * 0.01;
  tr >> num;
  int idx = num.find('.');
  for (idx -= 3; idx > 0; idx -= 3) num.insert(idx, ".");
  int l = num.size();
  if (l > 3 && num[l - 1] == '0' && num[l - 2] == '0' && num[l - 3] == '.')
    num.erase(l - 3);
  cout << num << "\n";
  ;
}
