%{
#include<stdio.h>
#include<string.h>
int i = 0;
%}
/* Rules Section*/
%%
([a-zA-Z0-9])* {i++;} /* Rule for counting
number of words*/
"\n" {printf("%d\n", i); i = 0;}
%%
int yywrap(void){}
int main()
{
// The function that starts the analysis
yylex();
return 0;
}
JXsgCiNpbmNsdWRlPHN0ZGlvLmg+IAojaW5jbHVkZTxzdHJpbmcuaD4gCmludCBpID0gMDsgCiV9IAogIAovKiBSdWxlcyBTZWN0aW9uKi8KJSUgCihbYS16QS1aMC05XSkqICAgIHtpKys7fSAvKiBSdWxlIGZvciBjb3VudGluZyAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgbnVtYmVyIG9mIHdvcmRzKi8KICAKIlxuIiB7cHJpbnRmKCIlZFxuIiwgaSk7IGkgPSAwO30gCiUlIAogIAppbnQgeXl3cmFwKHZvaWQpe30gCiAgCmludCBtYWluKCkgCnsgICAgCiAgICAvLyBUaGUgZnVuY3Rpb24gdGhhdCBzdGFydHMgdGhlIGFuYWx5c2lzIAogICAgeXlsZXgoKTsgCiAgCiAgICByZXR1cm4gMDsgCn0g