#include <bits/stdc++.h>
using namespace std;
bool check[5005];
int main() {
  string s, ans = "";
  cin >> s;
  long long len, i, x = 0, sum = 0, val = 0, y = 0, z = 0, temp = 0, j, cnt = 0;
  len = s.length();
  for (i = 0; i < len; i++) {
    if (s[i] == '.') {
      if (s[i + 1] >= '0' && s[i + 1] <= '9') {
        if (s[i + 2] >= '0' && s[i + 2] <= '9') {
          if (i + 3 < len && s[i + 3] >= '0' && s[i + 3] <= '9') continue;
          x = s[i + 1] - '0';
          y = s[i + 2] - '0';
          z = x * 10 + y;
          sum += z;
          check[i] = true;
        }
      }
    }
  }
  y = sum % 10;
  sum /= 10;
  z = sum % 10;
  sum /= 10;
  if (y > 0 || z > 0) {
    ans = ans + "." + char(z + '0') + char(y + '0');
  }
  for (i = 0; i < len;) {
    if (s[i] == '.' && check[i]) {
      i = i + 3;
    } else if (s[i] >= '0' && s[i] <= '9') {
      temp = 0;
      for (j = i; j < len; j++) {
        if (s[j] == '.' && check[j]) {
          i = j + 3;
          break;
        } else if (s[j] >= '0' && s[j] <= '9') {
          temp = temp * 10 + (s[j] - '0');
        }
        i = j + 1;
        if (s[j] >= 'a' && s[j] <= 'z') break;
      }
      val = val + temp;
    } else
      i = i + 1;
  }
  val = val + sum;
  cnt = 0;
  if (val == 0) {
    ans = "0" + ans;
  } else {
    while (val > 0) {
      cnt = cnt + 1;
      ans = char((val % 10) + '0') + ans;
      val /= 10;
      if (val > 0 && cnt == 3) {
        ans = "." + ans;
        cnt = 0;
      }
    }
  }
  cout << ans << "\n";
  return 0;
}
