#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const int N = 5e5 + 5;
const int M = 5e7;
double s[N];
char buf[N];
bool ok(char a) {
  char word[] = "IEAOUY";
  for (int i = 0; i < 6; i++)
    if (a == word[i]) return true;
  return false;
}
double sum[N];
int main() {
  s[0] = 0;
  for (int i = 1; i < N; i++) s[i] = s[i - 1] + 1. / i;
  vector<long long> v;
  scanf("%s", buf + 1);
  int n = strlen(buf + 1);
  sum[n + 1] = 0;
  for (int i = n; i >= 1; i--) sum[i] = sum[i + 1] + 1.0 * (n - i + 1) / i;
  double ans = 0;
  for (int i = 1; i <= n; i++)
    if (ok(buf[i])) {
      int t = min(i, n - i + 1);
      ans += t + sum[n - t + 2] + t * (s[n - t + 1] - s[t]);
    }
  printf("%.10f\n", ans);
}
