#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  vector<double> a(s.size() + 1);
  a[1] = 1;
  for (long long i = 2; i <= s.size(); ++i) {
    a[i] = a[i - 1] + 1.0 / i;
  }
  for (long long i = 2; i <= s.size(); ++i) {
    a[i] += a[i - 1];
  }
  double ans = 0;
  for (long long i = 1; i <= s.size(); ++i) {
    if (s[i - 1] == 'I' || s[i - 1] == 'E' || s[i - 1] == 'A' ||
        s[i - 1] == 'O' || s[i - 1] == 'U' || s[i - 1] == 'Y') {
      ans += a[s.size()] - a[i - 1] - a[s.size() - i];
    }
  }
  cout << fixed << setprecision(10) << ans;
}
