%{
#include <stdio.h>
int positive = 0, negative = 0;
%}
DIGIT [0-9]
%%
if (yytext[0] == '-') negative++;
else positive++;
}
.|\n ;
%%
int yywrap(void) { return 1; }
int main(void) {
yylex();
printf("Positive numbers: %d\n", positive);
printf("Negative numbers: %d\n", negative);
return 0;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CmludCBwb3NpdGl2ZSA9IDAsIG5lZ2F0aXZlID0gMDsKJX0KCkRJR0lUIFswLTldClNJR04gWystXQoKJSUKe1NJR059P3tESUdJVH0rIHsKICAgIGlmICh5eXRleHRbMF0gPT0gJy0nKSBuZWdhdGl2ZSsrOwogICAgZWxzZSBwb3NpdGl2ZSsrOwp9Ci58XG4gOwolJQoKaW50IHl5d3JhcCh2b2lkKSB7IHJldHVybiAxOyB9CgppbnQgbWFpbih2b2lkKSB7CiAgICB5eWxleCgpOwogICAgcHJpbnRmKCJQb3NpdGl2ZSBudW1iZXJzOiAlZFxuIiwgcG9zaXRpdmUpOwogICAgcHJpbnRmKCJOZWdhdGl2ZSBudW1iZXJzOiAlZFxuIiwgbmVnYXRpdmUpOwogICAgcmV0dXJuIDA7Cn0=