#include <bits/stdc++.h>
using namespace std;
const long long o = 5e5 + 1;
double ans;
long long n, s, f[o];
char c[o];
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> c + 1, n = strlen(c + 1);
  for (long long i = 1; i <= n; i++)
    f[i] = f[i - 1] + (c[i] == 'A' || c[i] == 'E' || c[i] == 'O' ||
                       c[i] == 'I' || c[i] == 'U' || c[i] == 'Y');
  for (long long i = 1; i <= n; i++)
    s += f[n - i + 1] - f[i - 1], ans += 1.0 * s / i;
  cout << fixed << setprecision(7) << ans;
  return 0;
}
