#include <bits/stdc++.h>
using namespace std;
void solve() {
  string str;
  cin >> str;
  int n = str.length();
  unordered_set<char> vowel = {'I', 'E', 'A', 'O', 'U', 'Y'};
  vector<int> sum(n + 1);
  vector<double> harm(n + 1);
  for (int i = 1; i <= n; ++i) {
    sum[i] = sum[i - 1] + vowel.count(str[i - 1]);
    harm[i] = harm[i - 1] + 1.0 / i;
  }
  double ans = 0;
  for (int i = 1; i <= n; ++i) {
    ans += harm[i] * sum[i];
    ans -= harm[n - (i - 1)] * sum[i - 1];
  }
  cout << ans << endl;
}
int main() {
  {
    ios::sync_with_stdio(false), cin.tie(nullptr),
        cout << fixed << setprecision(10);
  }
  solve();
  return 0;
}
