%{
#include <stdio.h>
int v = 0, c = 0; // Counters for vowels and consonants
%}
%%
[aeiouAEIOU] { v++; } // Increment vowel count
[a-zA-Z] { c++; } // Increment consonant count
\n { return 0; } // Stop reading on newline
%%
int main() {
printf("Enter input: ");
yylex(); // Process input
printf("VOWELS = %d\nCONSONANTS = %d\n", v, c);
return 0;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CmludCB2ID0gMCwgYyA9IDA7IC8vIENvdW50ZXJzIGZvciB2b3dlbHMgYW5kIGNvbnNvbmFudHMKJX0KCiUlCgpbYWVpb3VBRUlPVV0gICB7IHYrKzsgfSAgICAgICAgLy8gSW5jcmVtZW50IHZvd2VsIGNvdW50ClthLXpBLVpdICAgICAgIHsgYysrOyB9ICAgICAgICAvLyBJbmNyZW1lbnQgY29uc29uYW50IGNvdW50ClxuICAgICAgICAgICAgIHsgcmV0dXJuIDA7IH0gICAvLyBTdG9wIHJlYWRpbmcgb24gbmV3bGluZQoKJSUKCmludCBtYWluKCkgewogICAgcHJpbnRmKCJFbnRlciBpbnB1dDogIik7CiAgICB5eWxleCgpOyAgLy8gUHJvY2VzcyBpbnB1dAogICAgcHJpbnRmKCJWT1dFTFMgPSAlZFxuQ09OU09OQU5UUyA9ICVkXG4iLCB2LCBjKTsKICAgIHJldHVybiAwOwp9Cg==