#include <bits/stdc++.h>
using namespace std;
bool good(char a) {
  string s = "IEAOUY";
  for (int i = 0; i < s.size(); i++)
    if (a == s[i]) return true;
  return false;
}
int f[522222];
long long ls[522222];
long long lss[522222];
long long rs[522222];
long long rss[522222];
int main() {
  double answer = 0;
  string s;
  getline(cin, s);
  int n = s.size();
  for (int i = 0; i < s.size(); i++) {
    if (good(s[i]))
      f[i + 1] = 1;
    else
      f[i + 1] = 0;
  }
  ls[0] = f[0];
  for (int i = 1; i <= n; i++) ls[i] = ls[i - 1] + f[i];
  rs[n] = f[n];
  for (int i = n - 1; i >= 0; i--) rs[i] = rs[i + 1] + f[i];
  lss[0] = ls[0];
  for (int i = 1; i <= n; i++) lss[i] = lss[i - 1] + ls[i];
  rss[n] = rs[n];
  for (int i = n - 1; i >= 0; i--) rss[i] = rss[i + 1] + rs[i];
  for (int m = 1; m <= n; m++) {
    long long res = m * ls[n];
    res -= lss[m - 1];
    res -= rss[n + 2 - m];
    answer += (double)res / (double)m;
  }
  printf("%f", answer);
  return 0;
}
