#include <bits/stdc++.h>
using namespace std;
string s;
bool isok(char c) { return ((c >= '0' && c <= '9') || c == '.'); }
long long toi(string s) {
  long long ans = 0;
  for (auto i : s) {
    if (i == '.') continue;
    ans = 10 * ans + (i - '0');
  }
  if (!(s.length() >= 3 && s[s.length() - 3] == '.')) ans *= 100;
  return ans;
}
int main() {
  string s;
  cin >> s;
  string t = "";
  long long ans = 0;
  for (int i = 0; i < s.length(); i++)
    if (isok(s[i]))
      t += s[i];
    else {
      ans += toi(t);
      t = "";
    }
  ans += toi(t);
  int ch = ((ans % 100));
  string y;
  y += (ch / 10 + '0');
  y += (ans % 10) + '0';
  ans /= 100;
  long long temp = ans;
  string x;
  int g = 0;
  while (temp) {
    x += (temp % 10 + '0');
    g++;
    temp /= 10;
    if (temp && g % 3 == 0) x += '.';
  }
  reverse(x.begin(), x.end());
  cout << x;
  if (x.empty()) {
    cout << 0;
  }
  if (ch) cout << "." << y;
  return 0;
}
