#include <bits/stdc++.h>
using namespace std;
char s[500005];
int l;
double ans;
double v[500005];
double sum[500005];
double dp[500005];
void ini() {
  ans = 0;
  l = strlen(s);
  int i;
  sum[0] = 0;
  for (i = 1; i <= l; i++) {
    v[i] = 1.0 / i;
    sum[i] = sum[i - 1] + v[i];
  }
  dp[0] = sum[l];
  for (i = 1; i < l; i++) {
    dp[i] = dp[i - 1] + sum[l - i] - sum[i];
  }
}
void solve() {
  int i;
  for (i = 0; i < l; i++) {
    if (s[i] == 'A' || s[i] == 'E' || s[i] == 'I' || s[i] == 'O' ||
        s[i] == 'U' || s[i] == 'Y') {
      ans += dp[i];
    }
  }
}
void out() { printf("%.7f\n", ans); }
int main() {
  while (scanf("%s", s) != EOF) {
    ini();
    solve();
    out();
  }
  return 0;
}
