#include <bits/stdc++.h>
using namespace std;
char st[500109];
int a[500109], s[500109];
double shead[500109], stail[500109];
int main() {
  scanf("%s", st);
  memset(a, 0, sizeof(a));
  int n = strlen(st);
  for (int i = 0; i < n; i++)
    if (st[i] == 'A' || st[i] == 'E' || st[i] == 'I' || st[i] == 'O' ||
        st[i] == 'U' || st[i] == 'Y')
      a[i + 1] = 1;
  double ans = 0;
  s[0] = 0;
  shead[0] = 0;
  stail[n + 1] = 0;
  for (int i = 1; i <= n; i++) s[i] = s[i - 1] + a[i];
  for (int i = 1; i <= n; i++) shead[i] = shead[i - 1] + a[i] * i;
  for (int i = n; i > 0; i--) stail[i] = stail[i + 1] + a[i] * (n - i + 1);
  for (int i = 1; i <= n / 2; i++) {
    double x = s[n - i + 1] - s[i - 1];
    x *= i;
    x += shead[i - 1];
    x += stail[n - i + 2];
    ans += x / i;
    ans += x / (n - i + 1);
  }
  if (n % 2) ans += (shead[n / 2] + stail[n / 2 + 1]) / (n / 2 + 1);
  printf("%.8f\n", ans);
}
