#include <bits/stdc++.h>
using namespace std;
typedef double ld;
char s[500500];
bool vowel(char c) {
  const static char vowels[] = "IEAOUY";
  return strchr(vowels, c) != nullptr;
}
ld ans;
long long sum;
long long ps[500500];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> s;
  int n = strlen(s);
  for (int i = 0; i < n; ++i) {
    sum += vowel(s[i]);
    ps[i + 1] = ps[i] + vowel(s[i]);
  }
  for (int l = 1; l <= n; ++l) {
    ans += (ld)sum / l;
    sum += ps[n - l] - ps[l];
  }
  printf("%.10lf\n", ans);
}
