#include <bits/stdc++.h>
using namespace std;
char s[1000005];
long long sum[1000005];
int a[1000005];
bool check(char c) {
  if (c == 'I' || c == 'E' || c == 'A' || c == 'O' || c == 'U' || c == 'Y')
    return 1;
  return 0;
}
int main() {
  scanf("%s", s + 1);
  int cnt = 0;
  int len = strlen(s + 1);
  sum[0] = 0;
  a[0] = 0;
  for (int i = 1; i <= len; i++) {
    a[i] = a[i - 1] + check(s[i]);
    sum[i] = sum[i - 1] + a[i];
  }
  double ans = 0.0;
  for (int i = 1; i <= len; i++) {
    ans += (sum[len] - sum[i - 1] - sum[len - i]) * 1.0 / i * 1.0;
  }
  printf("%.10lf\n", ans);
  return 0;
}
