#include <bits/stdc++.h>
using namespace std;
const int N = 500005;
char word[N];
double harmonic[N];
bool is_wowel(char c) {
  if (c == 'I' || c == 'E' || c == 'A' || c == 'O' || c == 'U' || c == 'Y')
    return true;
  return false;
}
int main() {
  for (int i = 1; i < N; ++i) {
    harmonic[i] += harmonic[i - 1] + 1 / (double)i;
  }
  cin >> word;
  int word_len = strlen(word);
  double prittiness = 0;
  for (int i = 0; i < word_len; ++i) {
    if (is_wowel(word[i])) {
      prittiness +=
          ((i)-harmonic[i] + i * (harmonic[word_len] - harmonic[i]) -
           (i - word_len) * (harmonic[word_len] - harmonic[word_len - i]) -
           (i) + harmonic[word_len]);
    }
  }
  cout << setiosflags(ios::fixed) << setprecision(6) << prittiness << endl;
  return 0;
}
