%{
int vowelCount = 0;
int consonantCount = 0;
%}
%%
[aAeEiIoOuU] { vowelCount++; }
[a-zA-Z] { consonantCount++; }
. ;
%%
int main() {
yylex();
printf("Vowels: %d\n", vowelCount);
printf("Consonants: %d\n", consonantCount);
return 0;
}
JXsKaW50IHZvd2VsQ291bnQgPSAwOwppbnQgY29uc29uYW50Q291bnQgPSAwOwolfQoKJSUKW2FBZUVpSW9PdVVdICAgeyB2b3dlbENvdW50Kys7IH0KW2EtekEtWl0gICAgICAgeyBjb25zb25hbnRDb3VudCsrOyB9Ci4gICAgICAgICAgICAgIDsKCiUlCgppbnQgbWFpbigpIHsKICAgIHl5bGV4KCk7CiAgICBwcmludGYoIlZvd2VsczogJWRcbiIsIHZvd2VsQ291bnQpOwogICAgcHJpbnRmKCJDb25zb25hbnRzOiAlZFxuIiwgY29uc29uYW50Q291bnQpOwogICAgcmV0dXJuIDA7Cn0K