%{
#include <stdio.h>
int vowels = 0;
int consonants = 0;
%}
%%
[aeiouAEIOU] { vowels++; }
[b-df-hj-np-tv-zB-DF-HJ-NP-TV-Z] { consonants++; }
.|\n { /* ignore other characters */ }
%%
int main()
{
yylex();
printf("Vowels : %d\n", vowels); printf("Consonants : %d\n", consonants); return 0;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgdm93ZWxzID0gMDsKaW50IGNvbnNvbmFudHMgPSAwOwolfQolJQpbYWVpb3VBRUlPVV0JeyB2b3dlbHMrKzsgfQpbYi1kZi1oai1ucC10di16Qi1ERi1ISi1OUC1UVi1aXSB7IGNvbnNvbmFudHMrKzsgfQoufFxuCXsgLyogaWdub3JlIG90aGVyIGNoYXJhY3RlcnMgKi8gfQolJQoKaW50IG1haW4oKQp7Cnl5bGV4KCk7CnByaW50ZigiVm93ZWxzCTogJWRcbiIsIHZvd2Vscyk7IHByaW50ZigiQ29uc29uYW50cyA6ICVkXG4iLCBjb25zb25hbnRzKTsgcmV0dXJuIDA7Cn0K