#include <bits/stdc++.h>
using namespace std;
int n;
int bit[500000 + 1];
void add(int a, int w) {
  for (int x = a; x <= n; x += x & (-x)) bit[x] += w;
}
int sum(int a) {
  int ret = 0;
  for (int x = a; x > 0; x -= x & (-x)) ret += bit[x];
  return ret;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  n = static_cast<int>(s.size());
  for (int i = 0; i < n; i++) {
    if (s[i] == 'I' || s[i] == 'E' || s[i] == 'A' || s[i] == 'O' ||
        s[i] == 'U' || s[i] == 'Y') {
      add(i + 1, 1);
    }
  }
  double res = 0;
  double all = 0;
  for (int i = 1; i <= n; i++) {
    all += 1.0 / i;
  }
  if (n % 2 == 0) {
    for (int j = 0; j < n / 2; j++) {
      res += (double)(sum(n - j) - sum(j)) * all;
      all = all - 1.0 / (j + 1) - 1.0 / (n - j);
    }
  } else {
    for (int j = 0; j < n / 2 + 1; j++) {
      res += (double)(sum(n - j) - sum(j)) * all;
      all = all - 1.0 / (j + 1) - 1.0 / (n - j);
    }
  }
  cout << setprecision(10) << res << endl;
}
