#include <bits/stdc++.h>
int n, cnta;
char s[1000 + 10], a[1000 * 2 + 10];
void print(int ans1, int ans2) {
  int t = ans1 + ans2 / 100;
  if (!t)
    printf("0");
  else {
    cnta = 0;
    int cnt = 0;
    for (int x = t; x; x /= 10) {
      a[++cnta] = x % 10 + '0';
      ++cnt;
      if (cnt % 3 == 0) a[++cnta] = '.';
    }
    if (a[cnta] == '.') cnta--;
    for (int i = cnta; i >= 1; i--) printf("%c", a[i]);
  }
  int r = ans2 % 100;
  if (r) {
    printf(".");
    if (r / 10)
      printf("%d", r);
    else
      printf("0%d", r);
  }
  printf("\n");
}
int It(int i, int j) {
  int ret = 0;
  for (int k = i; k <= j; k++)
    if (s[k] != '.') ret = ret * 10 + (s[k] - '0');
  return ret;
}
int Db(int i, int j) { return (s[i] - '0') * 10 + (s[j] - '0'); }
int main() {
  scanf("%s", s + 1);
  n = strlen(s + 1);
  int tot1 = 0, tot2 = 0;
  for (int i = 1; i <= n;) {
    while (s[i] >= 'a' && s[i] <= 'z' && i <= n) i++;
    if (i > n) break;
    int j = i;
    while (!(s[j] >= 'a' && s[j] <= 'z') && j <= n) j++;
    j--;
    bool f = false;
    for (int k = j; k >= i; k--)
      if (s[k] == '.') {
        if (j - k == 2)
          tot1 += It(i, k - 1), tot2 += Db(k + 1, k + 2);
        else
          tot1 += It(i, j);
        f = true;
        break;
      }
    if (!f) tot1 += It(i, j);
    i = j + 1;
  }
  print(tot1, tot2);
  return 0;
}
