%{
#include <stdio.h>
%}
%%
abc { printf("ABC"); } /* Replace 'abc' with 'ABC' */
. { printf("%s", yytext); } /* print the unmatched character */
%%
int main() {
printf("Enter the string: ");
yylex();
printf("\n");
return 0;
}
int yywrap() { return 1; }
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CiV9CgolJQphYmMgICAgIHsgcHJpbnRmKCJBQkMiKTsgfSAgICAvKiBSZXBsYWNlICdhYmMnIHdpdGggJ0FCQycgKi8KLiB7IHByaW50ZigiJXMiLCB5eXRleHQpOyB9ICAgLyogcHJpbnQgdGhlIHVubWF0Y2hlZCBjaGFyYWN0ZXIgKi8KJSUKCmludCBtYWluKCkgewogICAgcHJpbnRmKCJFbnRlciB0aGUgc3RyaW5nOiAiKTsKICAgIHl5bGV4KCk7CiAgICBwcmludGYoIlxuIik7CiAgICByZXR1cm4gMDsKfQoKaW50IHl5d3JhcCgpIHsgcmV0dXJuIDE7IH0K