%{
#include <stdio.h>
#include <ctype.h>
%}
%%
[a-z] { printf("%c", toupper(yytext[0])); }
[A-Z] { printf("%c", tolower(yytext[0])); }
. { printf("%c", yytext[0]); }
%%
int main() {
printf("Enter text: ");
yylex();
return 0;
}
int yywrap() {
return 1;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxjdHlwZS5oPgolfQoKJSUKW2Etel0gICAgIHsgcHJpbnRmKCIlYyIsIHRvdXBwZXIoeXl0ZXh0WzBdKSk7IH0KW0EtWl0gICAgIHsgcHJpbnRmKCIlYyIsIHRvbG93ZXIoeXl0ZXh0WzBdKSk7IH0KLiAgICAgICAgIHsgcHJpbnRmKCIlYyIsIHl5dGV4dFswXSk7IH0KJSUKCmludCBtYWluKCkgewogICAgcHJpbnRmKCJFbnRlciB0ZXh0OiAiKTsKICAgIHl5bGV4KCk7CiAgICByZXR1cm4gMDsKfQoKaW50IHl5d3JhcCgpIHsKICAgIHJldHVybiAxOwp9