%{
#include <stdio.h>
int vowels = 0, consonants = 0;
%}
%%
[aeiouAEIOU] { vowels++; }
[a-zA-Z] { consonants++; }
.|\n { }
%%
int main() {
yylex();
printf("Vowels: %d\nConsonants: %d\n", vowels, consonants);
return 0;
}
int yywrap() {
return 1;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CmludCB2b3dlbHMgPSAwLCBjb25zb25hbnRzID0gMDsKJX0KCiUlCgpbYWVpb3VBRUlPVV0gICAgICB7IHZvd2VscysrOyB9ClthLXpBLVpdICAgICAgICAgIHsgY29uc29uYW50cysrOyB9Ci58XG4gICAgICAgICAgICAgIHsgfQoKJSUKCmludCBtYWluKCkgewogICAgeXlsZXgoKTsKICAgIHByaW50ZigiVm93ZWxzOiAlZFxuQ29uc29uYW50czogJWRcbiIsIHZvd2VscywgY29uc29uYW50cyk7CiAgICByZXR1cm4gMDsKfQoKaW50IHl5d3JhcCgpIHsKICAgIHJldHVybiAxOwp9Cg==