#include <bits/stdc++.h>
using namespace std;
double cnt[500001];
double sum[500001];
double calc(int x, int y) {
  if (x > y) return 0;
  return sum[y] - sum[x];
}
int main() {
  string a;
  cin >> a;
  cnt[0] = (double)1 / a.size();
  for (int i = 1; i < a.size(); i++) {
    double val = i + 1;
    cnt[i] = cnt[i - 1] + val / (a.size() - i);
  }
  sum[0] = 0;
  for (int i = 1; i <= a.size(); i++) {
    double val = i;
    sum[i] = sum[i - 1] + (1 / val);
  }
  double ans = 0;
  int n = a.size();
  for (int i = 0; i < a.size(); i++) {
    if (a[i] == 'A' || a[i] == 'O' || a[i] == 'U' || a[i] == 'E' ||
        a[i] == 'Y' || a[i] == 'I') {
      int pref = i;
      int suf = n - i - 1;
      int min1 = min(pref, suf);
      ans += min1;
      ans += cnt[min1];
      ans += (min1 + 1) * calc(min1, n - min1 - 1);
    }
  }
  printf("%0.9lf\n", ans);
}
