%{
#include <stdio.h>
%}
%%
[a-z] { printf("%c", yytext[0] - 32); }
. {printf("%c",yytext[0]);}
\n { printf("\n"); }
%%
int yywrap() {
return 1;
}
int main() {
printf("Enter text (Ctrl+D to end input):\n");
yylex();
return 0;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CiV9CiUlClthLXpdIHsgcHJpbnRmKCIlYyIsIHl5dGV4dFswXSAtIDMyKTsgfQouIHtwcmludGYoIiVjIix5eXRleHRbMF0pO30KXG4geyBwcmludGYoIlxuIik7IH0KJSUKaW50IHl5d3JhcCgpIHsKICAgIHJldHVybiAxOwp9CmludCBtYWluKCkgewogICAgcHJpbnRmKCJFbnRlciB0ZXh0IChDdHJsK0QgdG8gZW5kIGlucHV0KTpcbiIpOwogICAgeXlsZXgoKTsKICAgIHJldHVybiAwOwp9