#include <bits/stdc++.h>
using namespace std;
bool a[500010];
int sum[500010];
bool isVow(char c) {
  return c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U' || c == 'Y';
}
int main() {
  string s;
  cin >> s;
  int n = s.size();
  s = " " + s;
  sum[0] = 0;
  for (int j = 1; j <= n; j++) {
    bool x = isVow(s[j]);
    sum[j] = sum[j - 1] + x;
  }
  double ans = 0.0;
  long long int res = sum[n];
  ans += res;
  for (long long int j = 2; j <= n; j++) {
    res -= sum[n] - sum[n - j + 1];
    res += sum[n] - sum[j - 1];
    ans += (res * 1.0 / j);
  }
  printf("%.9f\n", ans);
}
