%{
#include <stdio.h>
%}

%%

[0-9]+       {
                int num = atoi(yytext);  // Convert matched text to integer
                if (num % 2 == 0)        // Check if the number is even
                    printf("%d is Even\n", num);
                else
                    printf("%d is Odd\n", num);
            }

.|\n          { /* Ignore other characters */ }

%%

int main() {
    yylex();  // Call the lexer to process input
    return 0;
}
