#include <bits/stdc++.h>
using namespace std;
double a[500020], b[500020];
char s[500020];
void init() {
  a[0] = b[0] = 0;
  double k = 1;
  for (int i = 1; i < 500020; ++i) {
    a[i] = a[i - 1] + 1 / k;
    b[i] = b[i - 1] + a[i];
    k++;
  }
}
bool isvow(char c) {
  if (c == 'I' || c == 'E' || c == 'A' || c == 'O' || c == 'U' || c == 'Y')
    return true;
  return false;
}
int main() {
  init();
  cin >> s;
  int len = strlen(s);
  double ans = 0;
  for (int i = 0; i < len; ++i) {
    if (isvow(s[i])) {
      ans += b[len] - b[i] - b[len - 1 - i];
    }
  }
  printf("%.7lf\n", ans);
  return 0;
}
