%{
#include <stdio.h>
int positive = 0, negative = 0;
%}

DIGIT [0-9]
SIGN [+-]

%%
{SIGN}?{DIGIT}+ {
    if (yytext[0] == '-') negative++;
    else positive++;
}
.|\n ;
%%

int yywrap() { return 1; }

int main() {
    yylex();
    printf("Positive numbers: %d\n", positive);
    printf("Negative numbers: %d\n", negative);
    return 0;
}