#include <bits/stdc++.h>
using namespace std;
double d[1000005], sum[1000005];
int cnt[1000005];
double dp[1000005];
bool check(char ch) {
  if (ch == 'A' || ch == 'E' || ch == 'I' || ch == 'O' || ch == 'U' ||
      ch == 'Y')
    return true;
  return false;
}
int main() {
  d[0] = 0;
  for (int i = 1; i < 1000005; ++i) {
    d[i] = (double)1 / i;
    sum[i] = sum[i - 1] + d[i];
  }
  memset(cnt, 0, sizeof(cnt));
  string str;
  cin >> str;
  int n = str.size();
  dp[1] = sum[n];
  double remove = 0;
  for (int i = 2; i <= n; ++i) {
    remove += d[n - i + 2];
    dp[i] = dp[i - 1] - remove + sum[n] - sum[i - 1];
  }
  double ans = 0;
  for (int i = 0; i < str.size(); ++i) {
    if (check(str[i])) {
      ans += dp[n - i];
    }
  }
  cout << fixed << setprecision(8) << ans << endl;
  return 0;
}
