#include <bits/stdc++.h>
using namespace std;
const int MaxN = int(2e6) + 256;
const long long INF = (long long)(1e18);
const int mod = (int)(1e9) + 7;
const double pi = 3.1415926535897932384626433832795;
long long n, m, a[MaxN], b[MaxN];
long long ans, ans1;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string second;
  cin >> second;
  vector<char> v;
  for (int i = second.size() - 1; i >= 0; i--) {
    if (second[i] == '.' || ('0' <= second[i] && second[i] <= '9')) {
      v.push_back(second[i]);
    } else {
      int last = -1;
      long long cnt = 1;
      for (int j = 0; j < v.size(); j++) {
        if (v[j] == '.') {
          last = j;
          int S = 0;
          for (int l = j - 1; l >= 0; l--) {
            if (v[l] == '.')
              break;
            else
              S++;
          }
          if (S == 2) {
            double q = (v[j - 1] - '0') * 10 + (v[j - 2] - '0') * 1;
            ans1 = q + ans1;
          } else {
            ans = ans + int(v[j - 3] - '0') * cnt;
            cnt = cnt * 10ll;
            ans = ans + int(v[j - 2] - '0') * cnt;
            cnt = cnt * 10ll;
            ans = ans + int(v[j - 1] - '0') * cnt;
            cnt = cnt * 10ll;
          }
        } else if (j == v.size() - 1) {
          for (int l = last + 1; l < v.size(); l++) {
            ans = ans + int(v[l] - '0') * cnt;
            cnt = cnt * 10;
          }
        }
      }
      v.clear();
    }
  }
  bool ok = 0;
  vector<int> kal;
  for (int i = 1; i <= 2; i++) {
    kal.push_back(ans1 % 10);
    ans1 /= 10;
  }
  reverse(kal.begin(), kal.end());
  vector<int> A;
  ans += ans1;
  if (kal[0] || kal[1]) ok = 1;
  while (ans) {
    A.push_back(ans % 10);
    ans /= 10;
  }
  long long cnt = 0;
  for (int i = 0; i < A.size(); i++) {
    v.push_back(char(A[i] + '0'));
    cnt++;
    if (cnt == 3 && A.size() != i + 1) {
      cnt = 0;
      v.push_back('.');
    }
  }
  reverse(v.begin(), v.end());
  for (int i = 0; i < v.size(); i++) cout << v[i];
  if (ok) {
    if (v.size() == 0) cout << "0";
    cout << '.';
    for (int i = 0; i < kal.size(); i++) cout << kal[i];
  }
  return 0;
}
