#include <bits/stdc++.h>
using namespace std;
char vowel[] = {'I', 'E', 'A', 'O', 'U', 'Y'};
bool is_vowel(char ch) {
  for (int i = 0; i < 6; i++)
    if (ch == vowel[i]) return 1;
  return 0;
}
double inverse[500000 + 5];
char str[500000 + 5];
double a[500000 + 5];
int main() {
  inverse[0] = 0;
  inverse[1] = 1;
  for (int i = 2; i < 500000 + 5; i++)
    inverse[i] = inverse[i - 1] + (double)1 / i;
  while (scanf("%s", str) != EOF) {
    memset(a, 0, sizeof(a));
    double ans = 0;
    int len = strlen(str);
    for (int i = 0; i <= (len + 1) / 2; i++) {
      a[i] += i + 1;
      a[i] += (i + 1) * (inverse[len - i] - inverse[i + 1]);
      a[i] += (len + 1) * (inverse[len] - inverse[len - i]) - i;
    }
    for (int i = 0; i < len; i++)
      if (is_vowel(str[i])) {
        if (i <= (len + 1) / 2)
          ans += a[i];
        else
          ans += a[len - i - 1];
      }
    cout << fixed << setprecision(7) << ans << endl;
  }
  return 0;
}
