#include <bits/stdc++.h>
using namespace std;
const int INF = 0x7fffffff;
const int MINF = 0x80000000;
const int mod = 1000000007;
const int cons = 500001;
long long sum[cons];
long long ssum[cons];
char vowels[6] = {'I', 'E', 'A', 'O', 'U', 'Y'};
int main() {
  string str;
  cin >> str;
  for (int i = 0; i < str.length(); i++) {
    bool isvowel = false;
    for (int j = 0; j < 6; j++) {
      if (str[i] == vowels[j]) {
        isvowel = true;
      }
    }
    sum[i + 1] = sum[i] + (long long)isvowel;
    ssum[i + 1] = ssum[i] + sum[i + 1];
  }
  double ans = 0;
  int oplen = str.length();
  for (int i = 1; i <= str.length() / 2 + (str.length() % 2); i++) {
    long long tmp = ssum[str.length()] - ssum[str.length() - i];
    long long tmp2 = ssum[i - 1] - ssum[0];
    ans += ((double)tmp - (double)tmp2) / (double)i;
    if (i != oplen) ans += ((double)tmp - (double)tmp2) / (double)oplen;
    oplen--;
  }
  printf("%lf\n", ans);
  return 0;
}
