%{
#include <stdio.h>
#include<stdio.h>
void reverse(char * str){
int len=strlen(str);
for(int i=0;i<len/2;i++){
char temp= str[i];
str[i] = str[len-i-1];
str[len-i-1]=temp;
}
}
%}
%%
[a-zA-Z0-9]+ {reverse(yytext);printf("%s",yytext);}
[\t\n] { printf("%s", yytext); }
. { printf("%s", yytext); }
%%
int main(){
yylex();
return 0;
}
int yywrap(){
return 1;
}
JXsKCiAgI2luY2x1ZGUgPHN0ZGlvLmg+CiAgI2luY2x1ZGU8c3RkaW8uaD4KICAKICB2b2lkIHJldmVyc2UoY2hhciAqIHN0cil7CiAgaW50IGxlbj1zdHJsZW4oc3RyKTsKICBmb3IoaW50IGk9MDtpPGxlbi8yO2krKyl7CiAgIGNoYXIgdGVtcD0gc3RyW2ldOwogICBzdHJbaV0gPSBzdHJbbGVuLWktMV07CiAgIHN0cltsZW4taS0xXT10ZW1wOwogIH0KICB9CiAgCiV9CgolJQpbYS16QS1aMC05XSsge3JldmVyc2UoeXl0ZXh0KTtwcmludGYoIiVzIix5eXRleHQpO30KCltcdFxuXSAgICAgICB7IHByaW50ZigiJXMiLCB5eXRleHQpOyB9Ci4gICAgICAgICAgICB7IHByaW50ZigiJXMiLCB5eXRleHQpOyB9CgolJQoKaW50IG1haW4oKXsKCiAgeXlsZXgoKTsKICByZXR1cm4gMDsKICAKfQoKaW50IHl5d3JhcCgpewoKICByZXR1cm4gMTsKICAKfQ==