%{
#include<stdio.h>
int lc=0,sc=0,tc=0,rc=0,rc2=0;
%}
%%
[\n] {lc++;}
[\t] {tc++:}
[" "]{ sc++;}
. {rc++;}
[^\n" "\t]{rc2++;}
%%
yywrap(){
return 1;
}
int main(){
printf("enter sentenxe");
yylex();
printf
("rc
is %d %d\n",rc,rc2);}
JXsKICAjaW5jbHVkZTxzdGRpby5oPgogIGludCBsYz0wLHNjPTAsdGM9MCxyYz0wLHJjMj0wOwogIAolfQolJQpbXG5dIHtsYysrO30KW1x0XSB7dGMrKzp9ClsiICJdeyBzYysrO30KLiB7cmMrKzt9ClteXG4iICJcdF17cmMyKys7fQolJQp5eXdyYXAoKXsKICByZXR1cm4gMTsKfQppbnQgbWFpbigpewogIHByaW50ZigiZW50ZXIgc2VudGVueGUiKTsKICB5eWxleCgpOwogIHByaW50ZigibGMgaXMgJWRcbiIsbGMpOwogIHByaW50Zigic2MgaXMgJWRcbiIsc2MpOwogIHByaW50ZigidGMgaXMgJWRcbiIsdGMpOwogIHByaW50ZigicmMgaXMgJWQgJWRcbiIscmMscmMyKTsKfQ==