#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const double eps = 1e-8;
double dp[500009];
int n;
string tp = "IEAOUY";
bool isvowel(char ch) {
  for (int i = 0; i < ((int)(tp.size())); i++)
    if (tp[i] == ch) return true;
  return false;
}
int main() {
  ios_base::sync_with_stdio(0);
  memset(dp, 0, sizeof(dp));
  ;
  string in;
  cin >> in;
  n = ((int)(in.size()));
  for (int i = 1; i <= n; i++) {
    dp[i] = dp[i - 1] + isvowel(in[i - 1]);
  }
  double ans = 0;
  double sum = 0;
  for (int len = 1; len <= n; len++) {
    int st = len;
    int ed = n - len + 1;
    sum += dp[ed] - dp[st - 1];
    ans += sum / ((double)len);
  }
  cout << fixed << setprecision(10) << ans << endl;
}
