#include <bits/stdc++.h>
using namespace std;
const int dx[9] = {0, 1, -1, 0, 0, -1, -1, 1, 1};
const int dy[9] = {0, 0, 0, -1, 1, -1, 1, -1, 1};
const double pi = acos(-1.0);
const int N = 5e5 + 100;
char s[N];
int pre[N], n;
map<char, int> dic;
double ans[N], temp = 0;
int main() {
  ios::sync_with_stdio(false);
  dic['I'] = dic['E'] = dic['A'] = dic['O'] = dic['U'] = dic['Y'] = 1;
  cin >> (s + 1);
  n = strlen(s + 1);
  for (int i = 1; i <= n; i++)
    if (dic[s[i]])
      pre[i] = pre[i - 1] + 1;
    else
      pre[i] = pre[i - 1];
  ans[1] = pre[n];
  for (int i = 2; i <= n; i++)
    ans[i] = ans[i - 1] + pre[n - i + 1] - pre[i - 1];
  for (int i = 1; i <= n; i++) {
    double j = i;
    temp += ans[i] / j;
  }
  printf("%.10f\n", temp);
  return 0;
}
