#include <bits/stdc++.h>
int main() {
  long double sum = 0;
  std::string inp;
  std::cin >> inp;
  long long len = inp.length(), i = 0;
  while (i < len) {
    char ch = inp[i];
    i++;
    int part = 0, partLen = 0;
    long double num = 0;
    while ((ch >= '0' && ch <= '9') || ch == '.') {
      if (ch == '.') {
        num *= 1000;
        num += part;
        part = 0;
        partLen = 0;
      } else {
        part *= 10;
        part += ch - '0';
        partLen++;
      }
      ch = inp[i];
      ++i;
    }
    if (partLen == 2) {
      sum += num;
      sum += (double)part / 100;
    } else {
      num *= 1000;
      num += part;
      sum += num;
    }
  }
  std::stack<int> st;
  double rem = sum - std::floor(sum);
  int irem = std::floor(rem * 100 + 0.5);
  long long lsum = std::floor(sum);
  while (lsum > 0) {
    st.push(lsum % 1000);
    lsum = lsum / 1000;
  }
  if (st.empty()) {
    std::cout << 0 << ".";
    if (irem < 10) {
      std::cout << 0 << irem;
    } else {
      std::cout << irem;
    }
  } else {
    int t = st.top();
    st.pop();
    std::cout << t;
    while (!st.empty()) {
      int t = st.top();
      st.pop();
      if (t < 10) {
        std::cout << "." << 0 << 0 << t;
      } else if (t < 100) {
        std::cout << "." << 0 << t;
      } else {
        std::cout << "." << t;
      }
    }
    if (irem != 0) {
      if (irem < 10) {
        std::cout << "." << 0 << irem;
      } else {
        std::cout << "." << irem;
      }
    }
  }
  return 0;
}
