#include <bits/stdc++.h>
using namespace std;
char s[1000100];
int n, S[1000100];
long double p[1000100], sol;
int main() {
  cin >> (s + 1);
  n = strlen(s + 1);
  for (int i = 1; i <= n; ++i) p[i] = p[i - 1] + 1.0 / i;
  for (int i = 1; i <= n; ++i) {
    S[i] = S[i - 1];
    if (s[i] == 'A' || s[i] == 'E' || s[i] == 'I' || s[i] == 'O' ||
        s[i] == 'U' || s[i] == 'Y')
      S[i]++;
  }
  for (int i = 1; i <= n; ++i) {
    sol -= S[i] * p[n - i];
    sol += S[i] * p[i];
  }
  cout << fixed << setprecision(8) << sol;
  return 0;
}
