#include <bits/stdc++.h>
using namespace std;
const int maxn = 5000000 + 10;
int n, a[maxn], b[maxn], sum[maxn];
double val[maxn], ans;
char str[maxn];
int main(int argc, char const *argv[]) {
  scanf("%s", str + 1), n = strlen(str + 1);
  for (int i = 1; i <= n; ++i)
    b[i] = (str[i] == 'A' || str[i] == 'E' || str[i] == 'I' || str[i] == 'O' ||
            str[i] == 'U' || str[i] == 'Y'),
    sum[i] = sum[i - 1] + b[i];
  for (int i = 1; i <= n; ++i)
    val[i] = val[i - 1] + sum[n - i + 1] - sum[i - 1],
    ans = ans + 1.0 * val[i] / i;
  printf("%.7lf\n", ans);
  return 0;
}
