#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)5e5 + 10;
char s[maxn];
double ans, sum;
int pref[maxn], cur;
int main() {
  scanf("%s", s);
  int n = (int)strlen(s);
  for (int i = 0; i < n; ++i) {
    if (s[i] == 'I' || s[i] == 'E' || s[i] == 'A' || s[i] == 'O' ||
        s[i] == 'U' || s[i] == 'Y')
      cur++, sum += 1;
    pref[i] = cur;
  }
  for (int i = 1; i <= n; ++i) {
    ans += sum / i;
    if (i != n) sum += cur - pref[i - 1] - (cur - pref[n - i - 1]);
  }
  printf("%.8lf\n", ans);
  return 0;
}
