#include <bits/stdc++.h>
using namespace std;
string s;
long double ans;
long long cnt[510000];
long double len1[510000];
long double len2[510000];
long long cnts[510000];
long double lens[510000];
int n;
int main() {
  ios::sync_with_stdio(0);
  cin >> s;
  n = s.length();
  cnt[0] = 0;
  len1[0] = 0;
  len2[0] = 0;
  for (int i = 1; i <= n; ++i) {
    cnt[i] = cnt[i - 1] + 1;
    cnts[i] = cnt[i];
    if (i) cnts[i] += cnts[i - 1];
    len1[i] = len1[i - 1] + 1.0 / (long double)i;
    len2[i] = len2[i - 1] + (long double)(i - 1) / (long double)i;
    lens[i] = (long double)i * len1[i] - len2[i];
  }
  ans = 0;
  for (int i = 0; i < n; ++i)
    if (s[i] == 'I' || s[i] == 'E' || s[i] == 'A' || s[i] == 'O' ||
        s[i] == 'U' || s[i] == 'Y') {
      long double sl = lens[n] - lens[i] - lens[n - i - 1];
      ans += (long double)sl;
    }
  cout.precision(10);
  cout << fixed << ans << "\n";
}
