#include <bits/stdc++.h>
using namespace std;
char s[500010];
double frac[500010], dp[500010], ans;
char che[] = "IEAOUY";
bool check(char c) {
  for (int i = 0; che[i]; i++)
    if (c == che[i]) return 1;
  return 0;
}
int main() {
  scanf("%s", s + 1);
  int len;
  for (len = 1; s[len]; len++) frac[len] = frac[len - 1] + 1. / len;
  for (int i = 1; i < len; i++) dp[i] = dp[i - 1] + frac[len - i] - frac[i - 1];
  for (int i = 1; i < len; i++)
    if (check(s[i])) ans += dp[i];
  printf("%.7f\n", ans);
  return 0;
}
