#include <bits/stdc++.h>
using namespace std;
bool debug = 0;
int n, m, k;
int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};
string direc = "RDLU";
long long ln, lk, lm;
void etp(bool f = 0) {
  puts(f ? "YES" : "NO");
  exit(0);
}
void addmod(int &x, int y, int mod = 1000000007) {
  x += y;
  if (x >= mod) x -= mod;
  assert(x >= 0 && x < mod);
}
void et() {
  puts("-1");
  exit(0);
}
bool isc(char x) { return x <= 'z' && 'a' <= x; }
void pp(long long k) {
  if (k == 0) {
    puts("0");
    return;
  }
  if (k < 10) {
    printf("0.0%lld\n", k);
    return;
  } else if (k < 100) {
    printf("0.%lld\n", k);
    return;
  }
  string a = to_string(k), b = "";
  b += a.back();
  a.pop_back();
  b += a.back();
  a.pop_back();
  for (int i = 0, j = a.length() - 1; i < a.length(); i++, j--) {
    if (i % 3 == 0) b.push_back('.');
    b.push_back(a[j]);
  }
  reverse(b.begin(), b.end());
  if (k % 100 == 0)
    for (int(j) = 0; (j) < (int)(3); (j)++) b.pop_back();
  cout << b << endl;
}
void fmain() {
  string s;
  cin >> s;
  s += 'p';
  n = s.length();
  bool in = 0;
  for (int i = 0, pre = -1; i < n; i++) {
    if (!isc(s[i])) {
      if (!in) {
        in = 1;
        pre = i;
      }
    } else {
      if (in) {
        string tmp = "";
        for (int j = pre; j < i; j++)
          if (s[j] != '.') tmp.push_back(s[j]);
        int z = stoi(tmp);
        if (!(i - 3 >= 0 && s[i - 3] == '.')) z *= 100;
        lk += z;
      }
      in = 0;
    }
  }
  pp(lk);
}
int main() {
  int t = 1;
  for (int(i) = 1; (i) <= (int)(t); (i)++) {
    fmain();
  }
  return 0;
}
