#include <bits/stdc++.h>
using namespace std;
long long dp[600100], dpf[600100];
string s;
bool check(char c) {
  if (c == 'I' || c == 'O' || c == 'A' || c == 'E' || c == 'U' || c == 'Y')
    return 1;
  return 0;
}
int main() {
  cin >> s;
  int l = s.size();
  dpf[0] = check(s[0]);
  dp[1] = check(s[0]);
  for (int i = 1; i < l; i++) {
    if (check(s[i])) {
      dpf[i] = dpf[i - 1] + 1;
      dp[1]++;
    } else
      dpf[i] = dpf[i - 1];
  }
  for (int i = 2; i < l; i++) {
    long long o = dp[i - 1] + dpf[l - i] - dpf[i - 2];
    dp[i] = o;
  }
  dp[l] = dpf[l - 1];
  double ans = 0;
  for (int i = 1; i <= l; i++) ans += (double)dp[i] / i * 1.0;
  cout << setprecision(10) << fixed << ans << endl;
  return 0;
}
