%{
#include <stdio.h>
int positive = 0, negative = 0;
%}
DIGIT [0-9]
%%
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;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CmludCBwb3NpdGl2ZSA9IDAsIG5lZ2F0aXZlID0gMDsKJX0KCkRJR0lUIFswLTldClNJR04gWystXQoKJSUKe1NJR059P3tESUdJVH0rIHsKICAgIGlmICh5eXRleHRbMF0gPT0gJy0nKSBuZWdhdGl2ZSsrOwogICAgZWxzZSBwb3NpdGl2ZSsrOwp9Ci58XG4gOwolJQoKaW50IHl5d3JhcCgpIHsgcmV0dXJuIDE7IH0KCmludCBtYWluKCkgewogICAgeXlsZXgoKTsKICAgIHByaW50ZigiUG9zaXRpdmUgbnVtYmVyczogJWRcbiIsIHBvc2l0aXZlKTsKICAgIHByaW50ZigiTmVnYXRpdmUgbnVtYmVyczogJWRcbiIsIG5lZ2F0aXZlKTsKICAgIHJldHVybiAwOwp9