#include <bits/stdc++.h>
using namespace std;
const long long INF = (long long)1e9 + 5;
const long long MOD = (long long)1e9 + 7;
const int MAXN = 500005;
string second;
int n, vowel[256];
long long pref0[MAXN], pref1[MAXN];
int main() {
  vowel['A'] = vowel['E'] = vowel['I'] = vowel['O'] = vowel['U'] = vowel['Y'] =
      1;
  cin >> second;
  n = second.size();
  for (int i = 1; i <= n; i++) {
    char ch = second[i - 1];
    if (vowel[ch]) {
      pref0[min(i, n - i + 1)] += 1;
      pref1[min(i, n - i + 1)] += min(i, n - i + 1);
    }
  }
  for (int i = 1; i <= n; i++) {
    pref0[i] += pref0[i - 1];
    pref1[i] += pref1[i - 1];
  }
  double ans = 0;
  int m = n / 2 + n % 2;
  for (int i = 1; i <= n; i++) {
    long long res = 0;
    if (i < n - i + 1) {
      res += (pref0[m] - pref0[i]) * i + pref1[i];
    } else {
      int p = n - i + 1;
      res += (pref0[m] - pref0[p]) * (n - i + 1) + pref1[p];
    }
    ans += (double)res / i;
  }
  cout << fixed << setprecision(100) << ans << '\n';
  return 0;
}
