#include <bits/stdc++.h>
using namespace std;
const int k_max_len = 1111;
char s[k_max_len];
int main(void) {
  scanf("%s", s);
  int len_s = strlen(s);
  vector<double> prices;
  bool state = 0;
  string curr_str;
  for (int i = 0; i < len_s; ++i) {
    if (!state) {
      if (s[i] >= 'a' && s[i] <= 'z')
        continue;
      else {
        curr_str += s[i];
        state = 1;
      }
    } else {
      if (s[i] >= 'a' && s[i] <= 'z') {
        if (curr_str.size() < 4 || curr_str[curr_str.size() - 3] != '.') {
          for (int i = 0; i < curr_str.size(); ++i) {
            if (curr_str[i] == '.') {
              curr_str.erase(curr_str.begin() + i);
              i--;
            }
          }
          prices.push_back(stoi(curr_str));
        } else {
          for (int i = 0; i < curr_str.size() - 3; ++i) {
            if (curr_str[i] == '.') {
              curr_str.erase(curr_str.begin() + i);
              i--;
            }
          }
          prices.push_back(stod(curr_str));
        }
        curr_str = "";
        state = 0;
      } else
        curr_str += s[i];
    }
  }
  if (curr_str.size() < 4 || curr_str[curr_str.size() - 3] != '.') {
    for (int i = 0; i < curr_str.size(); ++i) {
      if (curr_str[i] == '.') {
        curr_str.erase(curr_str.begin() + i);
        i--;
      }
    }
    prices.push_back(stoi(curr_str));
  } else {
    for (int i = 0; i < curr_str.size() - 3; ++i) {
      if (curr_str[i] == '.') {
        curr_str.erase(curr_str.begin() + i);
        i--;
      }
    }
    prices.push_back(stod(curr_str));
  }
  double ans = 0;
  for (int i = 0; i < prices.size(); ++i) ans += prices[i];
  int ans_int = (int)ans;
  string str = to_string(ans_int);
  for (int i = 0; i < str.size(); ++i) {
    if (((str.size() - (i + 1)) > 1 && (str.size() - (i + 1)) % 3 == 2) &&
        i > 0)
      printf(".");
    printf("%c", str[i]);
  }
  if ((double)ans_int != ans) {
    char temp[55555];
    sprintf(temp, "%.02lf", ans);
    printf(".");
    int temp_len = strlen(temp);
    for (int i = temp_len - 2; i < temp_len; ++i) printf("%c", temp[i]);
  }
  printf("\n");
  return 0;
}
