#include <bits/stdc++.h>
using namespace std;
string s;
long long int b[1000000], k, h, t[1000000];
long double ans, n, f;
int main() {
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'A' || s[i] == 'I' || s[i] == 'E' || s[i] == 'O' ||
        s[i] == 'U' || s[i] == 'Y') {
      if (i)
        b[i] = b[i - 1] + 1;
      else
        b[i] = 1;
    } else
      b[i] = b[i - 1];
  }
  k = s.size() - 1;
  for (int i = 0; i < s.size(); i++) {
    h = i;
    if (k - i < i) h = k - i;
    n = b[k] * (h + 1);
    if (h) {
      if (!t[h]) t[h] = t[h - 1] + (b[k] - b[k - h]) + b[h - 1];
      n -= t[h];
    }
    f = i + 1;
    ans += n / f;
  }
  cout.precision(7);
  cout << fixed << ans << endl;
  return 0;
}
