#include <bits/stdc++.h>
using namespace std;
int sm[550000];
int main() {
  string inp;
  cin >> inp;
  int n = inp.size();
  inp = '0' + inp;
  sm[0] = 0;
  for (int i = 1; i <= n; i++) {
    sm[i] = sm[i - 1];
    if (inp[i] == 'A' || inp[i] == 'E' || inp[i] == 'I' || inp[i] == 'O' ||
        inp[i] == 'U' || inp[i] == 'Y')
      sm[i]++;
  }
  double ans = 0, lencnt = 0;
  int lft = 0, rght = n;
  for (int i = 1; i <= n; i++) {
    lencnt += sm[rght] - sm[lft];
    ans += ((double)lencnt / i);
    lft++;
    rght--;
  }
  cout << fixed << setprecision(10) << ans;
  return 0;
}
