%{
#include <stdio.h>

int vowels_count = 0;
int consonants_count = 0;
%}

%% 

// Match vowels (both uppercase and lowercase)
[aeiouAEIOU]   { vowels_count++; }

// Match consonants (both uppercase and lowercase)
[b-df-hj-np-tv-zB-DF-HJ-NP-TV-Z] { consonants_count++; }

// Ignore any other characters (digits, punctuation, whitespace)
.              { /* Ignore other characters */ }

%% 

// Main function
int main(int argc, char **argv) {
    yylex(); // Start the lexical analysis
    printf("Vowels: %d\n", vowels_count);
    printf("Consonants: %d\n", consonants_count);
    return 0;
}