#include<stdio.h>
#include<ctype.h>

int main(){
    char str[1000];
    int count = 0;
    
    if(fgets(str, sizeof(str), stdin) == NULL){
        return 0;
    }
    
    for(int i = 0; str[i] != '\0'; i++){
        char ch = tolower(str[i]);
        if(ch == 'a' || ch = 'e' || ch = 'i' || ch == 'o'|| ch == 'u'){
            count ++;
        }
    }
    if(count > 0){
        printf("%d\n", count);
    }
    else{
        printf("-1\n");
    }
    return 0;
}