#include <bits/stdc++.h>
using namespace std;
const int MM = 600005;
const long long MOD = 1000000007;
double a[MM], sum[MM];
char s[MM];
int main() {
  sum[0] = a[0] = 0;
  for (int i = 1; i < MM; i++) {
    a[i] = a[i - 1] + 1.0 / i;
    sum[i] = sum[i - 1] + a[i];
  }
  scanf("%s", s + 1);
  int L = strlen(s + 1);
  double ans = 0;
  for (int j = 1; j <= L; j++) {
    if (s[j] == 'I' || s[j] == 'E' || s[j] == 'A' || s[j] == 'O' ||
        s[j] == 'U' || s[j] == 'Y')
      ans += (sum[L] - sum[L - j]) - (sum[j - 1]);
  }
  printf("%.9lf\n", ans);
  return 0;
}
