%{
#include<stdio.h>
int i;
%}
%%
[a-z A-Z]*{
for(i=0;i<=yyleng;i++)
{
if((yytext[i]=='a')&&(yytext[i+1]=='b')&&(yytext[i+2]=='c'))
{
yytext[i]='A';
yytext[i+1]='B';
yytext[i+2]='C';
}
}
printf("%s",yytext);
}
[\t]*return;
.*{ECHO;}
\n{printf("%s",yytext);}
%%
main()
{
yylex();
}
int yywrap()
{
return 1;
}
JXsKCSNpbmNsdWRlPHN0ZGlvLmg+CglpbnQgaTsKCSV9CgklJQoJW2EteiBBLVpdKnsKCQlmb3IoaT0wO2k8PXl5bGVuZztpKyspCgkJewoJCQlpZigoeXl0ZXh0W2ldPT0nYScpJiYoeXl0ZXh0W2krMV09PSdiJykmJih5eXRleHRbaSsyXT09J2MnKSkKCQkJewoJCQkJeXl0ZXh0W2ldPSdBJzsKCQkJCXl5dGV4dFtpKzFdPSdCJzsKCQkJCXl5dGV4dFtpKzJdPSdDJzsKCQkJfQoJCX0KCQlwcmludGYoIiVzIix5eXRleHQpOwoJfQoJW1x0XSpyZXR1cm47CgkuKntFQ0hPO30KCVxue3ByaW50ZigiJXMiLHl5dGV4dCk7fQoJJSUKCW1haW4oKQoJewoJCXl5bGV4KCk7Cgl9CglpbnQgeXl3cmFwKCkKCXsKCQlyZXR1cm4gMTsKfQ==