#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long soma = 0;
  for (int i = 0; i < s.size(); i++) {
    if (!(s[i] >= '0' && s[i] <= '9')) continue;
    long long v = 0;
    bool dec = false;
    while (i < s.size() && ((s[i] >= '0' && s[i] <= '9') || s[i] == '.')) {
      if (s[i] == '.') {
        if (i + 3 >= s.size() || !(s[i + 3] >= '0' && s[i + 3] <= '9')) {
          dec = true;
          v = v * 100 + (s[i + 1] - '0') * 10 + s[i + 2] - '0';
          i += 3;
          break;
        } else {
          i++;
          continue;
        }
      }
      v *= 10;
      v += s[i] - '0';
      i++;
    }
    if (!dec) v *= 100;
    soma += v;
  }
  char resp[20];
  sprintf(resp, "00%lld", soma);
  int tam = strlen(resp);
  int ini;
  if (tam == 3)
    ini = 0;
  else if (tam == 4)
    ini = 1;
  else
    ini = 2;
  int fim;
  if (resp[tam - 1] == '0' && resp[tam - 2] == '0')
    fim = 2;
  else
    fim = 0;
  for (int i = ini; i < tam - fim; i++) {
    printf("%c", resp[i]);
    if ((tam - i - 1) % 3 == 2 && i != tam - fim - 1) printf(".");
  }
  printf("\n");
}
