#include <bits/stdc++.h>
int number = 0;
int coops = 0;
void parse_number(std::vector<char> &now) {
  if (now.size() >= 3 and now[2] == '.') {
    int cop = (int)(now[0] - '0') + ((int)(now[1] - '0')) * 10;
    coops += cop;
    number += coops / 100;
    coops %= 100;
    now.erase(now.begin(), now.begin() + 2);
  }
  int step = 1;
  int now_number = 0;
  for (int i = 0; i < now.size(); i++) {
    if (now[i] == '.') continue;
    now_number += ((int)(now[i] - '0')) * step;
    step *= 10;
  }
  number += now_number;
}
int main() {
  std::vector<char> some;
  char x;
  for (; std::cin >> x;) some.push_back(x);
  std::vector<std::vector<char>> numbers;
  std::vector<char> now_number;
  for (int i = some.size() - 1; i >= 0; i--) {
    if ((some[i] >= '0' and some[i] <= '9') or some[i] == '.') {
      now_number.push_back(some[i]);
      continue;
    }
    if (now_number.size() == 0) continue;
    numbers.push_back(now_number);
    now_number.clear();
  }
  for (auto now : numbers) {
    parse_number(now);
  }
  std::vector<char> sum;
  if (coops != 0) {
    sum.push_back((char)(coops % 10 + '0'));
    coops /= 10;
    sum.push_back((char)(coops % 10 + '0'));
    sum.push_back('.');
  }
  for (int i = 1;; i++) {
    sum.push_back((char)(number % 10 + '0'));
    number /= 10;
    if (number == 0) break;
    if (i % 3 == 0) sum.push_back('.');
  }
  for (int i = sum.size() - 1; i >= 0; i--) {
    std::cout << sum[i];
  }
  std::cout << std::endl;
}
