#include<stdio.h>
#include<ctype.h>
int countVowels(char *str){
    int count = 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++;
            
        }
    }
    return count ;
}
int isValidInput(char *str) {
    for (int i = 0; str[i]; i++) {
        if(!isalpha(str[i])) {
            return 0;
        }
    }
    return 1;
}
int main(){
    char input[101];
    printf("Enter a string: ");
    fgets(input,sizeof(input), stdin);
    input[strcspn(input, "\n")]  = 0;
    
    if(isValidInput(input)) {
        printf("%d\n", countVowels(input));
    }else {
        printyf("Invalid inp")
    }