#include <bits/stdc++.h>
using namespace std;
char s[555555];
int a[555555];
bool vowel(char c) {
  return c == 'I' || c == 'E' || c == 'A' || c == 'O' || c == 'U' || c == 'Y';
}
int main() {
  scanf("%s", s);
  int n = strlen(s);
  for (int i = 0; i < n; i++) {
    a[i] = vowel(s[i]) ? 1 : 0;
    if (i) {
      a[i] += a[i - 1];
    }
  }
  double cm = 0;
  for (int i = 1; i <= n; i++) {
    cm += 1.0 / i;
  }
  double ans = 0;
  for (int i = 0; i <= n - 1 - i; i++) {
    ans += cm * (a[n - 1 - i] - (i == 0 ? 0 : a[i - 1]));
    cm -= 1.0 / (i + 1) + 1.0 / (n - i);
  }
  printf("%.11f", ans);
  return 0;
}
