#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 500010;
int N;
char Str[MAX_N];
double H[MAX_N];
int S[MAX_N];
inline void Main() {
  scanf("%s", Str + 1);
  N = strlen(Str + 1);
  for (int i = 1; i <= N; i++) {
    H[i] = H[i - 1] + 1.0 / i;
    S[i] = S[i - 1] + ((Str[i]) == 'I' || (Str[i]) == 'E' || (Str[i]) == 'A' ||
                       (Str[i]) == 'O' || (Str[i]) == 'U' || (Str[i]) == 'Y');
  }
  double sum = 0;
  for (int i = 1; i <= N; i++) {
    sum -= H[N - i + 1] * S[i - 1];
  }
  for (int j = 1; j <= N; j++) {
    sum += H[j] * S[j];
  }
  printf("%.8lf\n", sum);
}
int main() {
  Main();
  return 0;
}
