#include <bits/stdc++.h>
using namespace std;
string s;
vector<int> prices;
vector<int> decim;
bool isNo(char c) {
  int x = (int)c;
  if (x >= 48 && x <= 57)
    return true;
  else
    return false;
}
int main() {
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (isNo(s[i])) {
      int temp = 0;
      int xx = (int)s[i];
      while (xx < 97) {
        if (s[i] == '.') {
          if (i + 3 == s.size()) {
            int temp2 = 0;
            temp2 += (int)s[i + 1] - 48;
            temp2 *= 10;
            temp2 += (int)s[i + 2] - 48;
            i = i + 3;
            decim.push_back(temp2);
            break;
          } else {
            int yy = (int)s[i + 3];
            if (yy > 57) {
              int temp2 = 0;
              temp2 += (int)s[i + 1] - 48;
              temp2 *= 10;
              temp2 += (int)s[i + 2] - 48;
              i = i + 3;
              decim.push_back(temp2);
              break;
            }
          }
          i++;
          xx = (int)s[i];
        }
        temp = temp * 10;
        temp = temp + (xx - 48);
        i++;
        if (i == s.size()) break;
        xx = (int)s[i];
      }
      prices.push_back(temp);
      temp = 0;
      if (i != s.size()) i--;
    }
  }
  long long sum = 0;
  long long dsum = 0;
  for (int i = 0; i < prices.size(); i++) sum += prices[i];
  for (int i = 0; i < decim.size(); i++) {
    dsum += decim[i];
  }
  if (dsum >= 100) {
    int add = dsum / 100;
    sum += add;
    dsum = dsum % 100;
  }
  if (sum > 999) {
    vector<int> cc;
    while (sum > 0) {
      cc.push_back(sum % 10);
      sum = sum / 10;
    }
    reverse(cc.begin(), cc.end());
    int i = cc.size() % 3;
    int j;
    for (j = 0; j < i; j++) cout << cc[j];
    while (j < cc.size()) {
      if (i == 0) {
        i = 1;
      } else
        cout << ".";
      for (int x = j; x < j + 3; x++) cout << cc[x];
      j = j + 3;
    }
    if (dsum > 0) {
      if (dsum < 10) {
        cout << ".0" << dsum;
      } else {
        cout << "." << dsum;
      }
    }
  } else {
    cout << sum;
    if (dsum != 0)
      if (dsum < 10)
        cout << ".0" << dsum;
      else
        cout << "." << dsum;
  }
  return 0;
}
