#include <bits/stdc++.h>
using namespace std;
char c[600000];
int cn;
int pre[600000];
long long SP[600000];
double Ans = 0;
int main() {
  scanf("%s", c + 1);
  cn = strlen(c + 1);
  pre[0] = 0;
  for (int ci = 1; ci <= cn; ci++) {
    pre[ci] = pre[ci - 1];
    if (c[ci] == 'A') pre[ci]++;
    if (c[ci] == 'E') pre[ci]++;
    if (c[ci] == 'I') pre[ci]++;
    if (c[ci] == 'O') pre[ci]++;
    if (c[ci] == 'U') pre[ci]++;
    if (c[ci] == 'Y') pre[ci]++;
  }
  SP[0] = 0;
  for (int ci = 1; ci <= cn; ci++) {
    int p = pre[cn + 1 - ci] - pre[ci - 1];
    SP[ci] = SP[ci - 1] + p;
    Ans += (double)SP[ci] / ci;
  }
  printf("%.9f\n", Ans);
}
