#include <bits/stdc++.h>
const int N = 600000 + 7;
using namespace std;
char o[] = {'I', 'E', 'A', 'O', 'U', 'Y'};
bool mark[N];
long long sum[N];
long double ans;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  for (int i = 0; i < (((int)s.size())); i++)
    for (int j = 0; j < (6); j++)
      if (s[i] == o[j]) mark[i + 1] = true;
  int n = ((int)s.size());
  for (int i = 1; i <= n; i++) sum[i] = sum[i - 1] + mark[i];
  long long cnt = sum[n];
  ans = cnt;
  for (int i = 2; i <= n; i++) {
    cnt += (sum[n - i + 1] - sum[i - 1]);
    ans += (long double)cnt / (long double)i;
  }
  cout << setprecision(7) << fixed << ans << endl;
}
