%{
#include <stdio.h>
int vowels = 0, consonants = 0;
%}
[aAeEiIoOuU]+ {vowels++;}
[a-zA-Z]+ {consonants++;}
%%
int main()
{
printf("Enter a line: ");
yylex();
printf("\nStatistics:\n");
printf("Vowels: %d\n", vowels);
printf("Consonants: %d\n", consonants);
return 0;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CmludCB2b3dlbHMgPSAwLCBjb25zb25hbnRzID0gMDsKJX0KClthQWVFaUlvT3VVXSsgICAgICAgICAgICB7dm93ZWxzKys7fQoKW2EtekEtWl0rICAgICAgICAgICAgICAgICB7Y29uc29uYW50cysrO30KCiUlCgppbnQgbWFpbigpCnsKICAgIHByaW50ZigiRW50ZXIgYSBsaW5lOiAiKTsKICAgIHl5bGV4KCk7CiAgICBwcmludGYoIlxuU3RhdGlzdGljczpcbiIpOwogICAgcHJpbnRmKCJWb3dlbHM6ICVkXG4iLCB2b3dlbHMpOwogICAgcHJpbnRmKCJDb25zb25hbnRzOiAlZFxuIiwgY29uc29uYW50cyk7CiAgICByZXR1cm4gMDsKfQo=