#include <bits/stdc++.h>
using namespace std;
string all = "IEAOUY";
bool is(char c) {
  for (long long i = 0; i < (long long)all.size(); i++)
    if (all[i] == c) return true;
  return false;
}
int main() {
  string s;
  cin >> s;
  int n = s.size();
  vector<double> x(n);
  for (long long i = 0; i < (long long)n; i++)
    if (i == 0)
      x[i] = 1;
    else
      x[i] = x[i - 1] + 1.0 / (i + 1);
  double cur = x[n - 1], ans = 0;
  for (long long i = 0; i < (long long)n; i++) {
    if (is(s[i])) ans += cur;
    if (i < n - 1) cur = cur - x[i] + x[n - 1 - i - 1];
  }
  cout << fixed << setprecision(10) << ans << endl;
  return 0;
}
