#include <bits/stdc++.h>
using namespace std;
const string vowel = "AEIOUY";
string s;
int isVowel(char c) {
  for (int i = 0; i < 6; i++)
    if (c == vowel[i]) return 1;
  return 0;
}
int main() {
  ios::sync_with_stdio(false);
  cin >> s;
  double left = 0;
  for (int i = 1; i <= s.length(); i++) left += 1.0 / i;
  double backup = left;
  double ans = 0;
  double accu = 0;
  for (int i = 1; i <= (1 + s.length()) / 2; i++) {
    accu += left;
    ans += accu * isVowel(s[i - 1]);
    left -= 1.0 / i + 1.0 / (s.length() - i + 1);
  }
  accu = 0;
  left = backup;
  for (int i = s.length(); i > (1 + s.length()) / 2; i--) {
    accu += left;
    ans += accu * isVowel(s[i - 1]);
    left -= 1.0 / i + 1.0 / (s.length() - i + 1);
  }
  cout.precision(15);
  cout << ans << endl;
}
