#include <bits/stdc++.h>
using namespace std;
char str[500010];
bool is_vowel(char c) {
  return (c == 'I' || c == 'E' || c == 'A' || c == 'O' || c == 'U' || c == 'Y');
}
double rev[500010], sum[500010];
int main() {
  scanf("%s", str + 1);
  int N = strlen(str + 1), i;
  for (i = 1; i <= N; i++) {
    rev[i] = rev[i - 1] + 1.0 / i;
    sum[i] = sum[i - 1] + rev[i];
  }
  double ans = 0.0;
  for (i = 1; i <= N; i++) {
    if (is_vowel(str[i])) {
      int mn = i, mx = N - i + 1;
      if (mn > mx) swap(mn, mx);
      ans +=
          (rev[mx] - rev[mn] + 1.0) * mn + sum[N] - sum[mx - 1] - rev[mx] * mn;
    }
  }
  printf("%.9lf\n", ans);
  return 0;
}
