#include <bits/stdc++.h>
using namespace std;
const int INF = 0x7fffffff;
const int MOD = 1e9 + 7;
const int N = 1e6 + 10;
char s[N];
int sum[N];
int main() {
  scanf("%s", s);
  int n = strlen(s);
  for (int i = 0; i < n; i++) {
    if (s[i] == 'A' || s[i] == 'E' || s[i] == 'I' || s[i] == 'O' ||
        s[i] == 'U' || s[i] == 'Y')
      sum[i + 1]++;
    sum[i + 1] += sum[i];
  }
  long long t = 0;
  double ans = 0;
  for (int i = 1; i <= n; i++) {
    t += sum[n - i + 1] - sum[i - 1];
    ans += 1.0 * t / i;
  }
  printf("%.10lf\n", ans);
  return 0;
}
