#include<stdio.h>
#include<ctype.h>
int countVowels(char *str){
    int count = 0;
    for(int i=0;str[i];i++){
        char c=tolower(str[i]);
        if(c=='a'|| c=='e'||c=='i'||c=='o'||c=='u'){
            count++;
            
        }
    }
    return count;
}
int main(){
    char input[101];
    printf("Enter a string: ");
    fgets(input,sizeof(input), stdin);
    
    for(int i=0; input[i]; i++){
        if(input[i]=='\n'){
            input[i]='\n';
            break;
        }
    }
    int valid=1;
    for(int i=0; input[i];i++){
        if(!isalpha(input[i]) && input[i] !=''){
            valid=0
            break;
            
        }
    }
    if (!valid){
        printf("Invalid input\n");
        
    }else{
        printf("%d\n",countVowels(input));
    }
    return 0;
    
}