#include <bits/stdc++.h>
using namespace std;
char s[1010];
int a[100];
long long ans;
int main() {
  cin >> s;
  int len = strlen(s);
  for (int i = 0; i < len; i++) {
    if (s[i] >= '0' && s[i] <= '9') {
      int temp = 0, p = 0;
      for (; (s[i] >= '0' && s[i] <= '9') || s[i] == '.'; i++) {
        if (s[i] == '.')
          p = i;
        else
          temp = temp * 10 + s[i] - '0';
      }
      i--;
      if (i - p == 2)
        ans += temp;
      else
        ans += temp * 100;
    }
  }
  int cnt;
  for (cnt = 0; ans != 0; ans /= 10) a[++cnt] = ans % 10;
  for (int i = cnt; i > 3; i--) {
    if (i % 3 == 0)
      cout << a[i] << ".";
    else
      cout << a[i];
  }
  cout << a[3];
  if (a[1] || a[2])
    cout << "." << a[2] << a[1] << endl;
  else
    cout << endl;
  return 0;
}
