#include <bits/stdc++.h>
using namespace std;
const int N = 500004, M = 5004;
double s[N];
int n;
char z[N];
string t = "AEIOUY";
int main() {
  scanf("%s", z + 1);
  n = strlen(z + 1);
  for (int i = 1; i <= n; i++) s[i] = s[i - 1] + 1.0 / i;
  double sum = 0, ans = 0;
  for (int i = 1; i <= n; i++) {
    int l = i, r = n - i + 1;
    sum += s[r] - s[l - 1];
    if (t.find(z[i]) != -1) ans += sum;
  }
  printf("%.12f\n", ans);
}
