%{
 int _non_capital = 0;
 int _capital = 0;
 int others = 0;
 %}
 non-capital [a-z]
 capital [A-Z]
 %%
 [\n] { printf("Capital = %d - Non-Capital = %d - Others = %d",_capital,_non_capital,others); return 
0 ;}
 {non-capital} { _non_capital++ ; }
 {capital} {_capital++;}
 [ \t]+ {} 
. {others++;}
 %%
 int main ( void ){
 yylex();
 return (0) ; }
 int yywrap(void)
 {return 1;}
