#include <bits/stdc++.h>
using namespace std;
char s[500005];
double q[500005];
int main() {
  int n, i;
  double p = 0.0;
  scanf("%s", s);
  n = strlen(s);
  p = q[0] = 0.0;
  for (i = 1; i <= n; i++) q[i] = q[i - 1] + 1.0 / i;
  for (i = 1; i <= n; i++) q[i] += q[i - 1];
  for (i = 0; i < n; i++)
    if (s[i] == 'I' || s[i] == 'E' || s[i] == 'A' || s[i] == 'O' ||
        s[i] == 'U' || s[i] == 'Y')
      p += q[n] - q[i] - q[n - i - 1];
  printf("%.7lf\n", p);
  return 0;
}
