#include <bits/stdc++.h>
using namespace std;
bool check_vowel(char ch) {
  return (ch == 'A' || ch == 'E' || ch == 'I' || ch == 'O' || ch == 'U' ||
          ch == 'Y');
}
const int maxn = 1e6;
long long prefix[maxn], sumPrefix[maxn];
string str;
double ans = 0.0;
long long getSum(int l, int r) {
  l -= 1;
  long long ret = sumPrefix[r];
  if (l >= 0) ret -= sumPrefix[l];
  return ret;
}
int main() {
  cin >> str;
  int N = str.size();
  for (int i = 1; i <= N; i++) {
    prefix[i] = prefix[i - 1] + check_vowel(str[i - 1]);
    sumPrefix[i] = sumPrefix[i - 1] + prefix[i];
  }
  for (int len = 1; len <= N; len++) {
    long long currentSum = getSum(len, N) - getSum(0, N - len);
    ans += (1.0 * currentSum) / len;
  }
  printf("%.9f\n", ans);
  return 0;
}
