package main
import (
"fmt"
"io"
"os"
"strings"
)
func isVowel(c byte) bool {
switch c {
case 'I', 'E', 'A', 'O', 'U', 'Y':
return true
default:
return false
}
}
func main() {
data, _ := io.ReadAll(os.Stdin)
s := strings.TrimSpace(string(data))
n := len(s)
h := make([]float64, n+1)
p := make([]float64, n+1)
for i := 1; i <= n; i++ {
h[i] = h[i-1] + 1.0/float64(i)
p[i] = p[i-1] + h[i]
}
var ans float64
total := p[n]
for i := 0; i < n; i++ {
if isVowel(s[i]) {
ans += total - p[n-i-1] - p[i]
}
}
fmt.Printf("%.15f\n", ans)
}