#include <bits/stdc++.h>
using namespace std;
long long in() {
  int32_t x;
  scanf("%d", &x);
  return x;
}
inline long long lin() {
  long long x;
  scanf("%lld", &x);
  return x;
}
inline void read(long long *a, long long n) {
  for (long long i = 0; i < n; i++) a[i] = in();
}
inline void readL(long long *a, long long n) {
  for (long long i = 0; i < n; i++) a[i] = lin();
}
const long long maxn = 2e6 + 10;
const long long mod = 1e9 + 7;
const long long MAX_VAL = 1e18 + 10;
const long long MAGIC = 350;
map<char, bool> mp = {{'I', true}, {'E', true}, {'A', true},
                      {'O', true}, {'U', true}, {'Y', true}};
long long dp0[maxn], dp[maxn];
int32_t main() {
  string s;
  cin >> s;
  long long n = (long long)s.size();
  for (long long i = 0; i < n; i++) {
    if (!mp[s[i]]) continue;
    long long left = i, right = n - 1 - left;
    long long firstBeg = 1, lastBeg = left + firstBeg;
    long long firstEn = right + 1, lastEn = left + firstEn;
    dp0[firstBeg]++;
    dp0[lastBeg + 1]--;
    dp0[firstEn + 1]--;
    dp0[lastEn + 2]++;
  }
  for (long long i = 1; i < maxn; i++) dp0[i] += dp0[i - 1];
  for (long long i = 0; i < maxn; i++) dp[i] = dp0[i];
  for (long long i = 1; i < maxn; i++) dp[i] += dp[i - 1];
  double res = 0;
  for (long long i = 1; i < maxn; i++) {
    res += (double)1.0 / i * dp[i];
  }
  cout << fixed << setprecision(10) << res << endl;
}
