%{
#include <stdio.h>
#include <string.h>
%}
%%
[a-zA-Z_][a-zA-Z0-9_]* {printf("VALID ");}
[0-9] {printf("Invalid");}
.
%%
int main() {
printf("Enter a string: ");
yylex();
return 0;
}
int yywrap() {
return 1;
}
CgolewojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1ZGUgPHN0cmluZy5oPgolfQoKJSUKClthLXpBLVpfXVthLXpBLVowLTlfXSogICAgIHtwcmludGYoIlZBTElEICIpO30KWzAtOV0gICAgICAgICAgICAgICAgICAgICAge3ByaW50ZigiSW52YWxpZCIpO30KLiAgICAgICAgICAgICAgICAgICAgICAgIAoKJSUKCmludCBtYWluKCkgewogICAgcHJpbnRmKCJFbnRlciBhIHN0cmluZzogIik7CiAgICB5eWxleCgpOyAgCiAgICByZXR1cm4gMDsKfQoKaW50IHl5d3JhcCgpIHsKICAgIHJldHVybiAxOwp9Cg==