#include <bits/stdc++.h>
using namespace std;
using ll = int_fast64_t;
bool vowel(char x) {
  return x == 'A' || x == 'E' || x == 'I' || x == 'O' || x == 'U' || x == 'Y';
}
int main() {
  string s;
  cin >> s;
  int n = s.size();
  vector<int> a(s.size() + 1);
  for (int i = 0; i < s.size(); ++i) {
    a[i + 1] = vowel(s[i]) + a[i];
  }
  ll sum = a[n];
  double ans = 0;
  for (int len = 1; len <= n; ++len) {
    ans += sum / (double)len;
    if (len * 2 < n) {
      int l = len + 1, r = n - len;
      sum += a[r] - a[l - 1];
    } else {
      int l = n - len + 1, r = len;
      sum -= a[r] - a[l - 1];
    }
  }
  cout.precision(10);
  cout << fixed << ans;
  return 0;
}
