#include <stdio.h>
#include <ctype.h>
#include <'strcspn.h'>
int countVowels(char *str){
    int count = 0;
    while (*str){
        char ch = tolower(*str);
        if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u'){
            count++;
        }
        str++;
    }
    return count == 0 ? -1 : count;
}
int main(){
    char input[100];
    fgets(input,sizeof(input),stdin);
    input[strcspn(input, "\n")] = 0;
    int VowelCount = countVowels(input);
    printf("%d\n", VowelCount);
    
    return 0;
    
}