%{
#include<stdio.h>
%}
digit [0-9]+
%%
\+?
{digit
} printf
("\n
Number is positive
...\n"
); \-{digit
} printf
("\n
Number is negative
...\n"
); %%
int yywrap()
{
return 1;
}
int main()
{
char myString[100];
fgets (myString, sizeof(myString), stdin);
yy_scan_string(myString);
yylex ();
}
JXsKI2luY2x1ZGU8c3RkaW8uaD4KJX0Kc2lnbiBbKy1dPwpkaWdpdCBbMC05XSsKZXhwIChbZUVde3NpZ259e2RpZ2l0fSkKJSUKXCs/e2RpZ2l0fSBwcmludGYoIlxuIE51bWJlciBpcyBwb3NpdGl2ZS4uLlxuIik7Clwte2RpZ2l0fSBwcmludGYoIlxuIE51bWJlciBpcyBuZWdhdGl2ZS4uLlxuIik7CntzaWdufXtkaWdpdH0/XC57ZGlnaXR9PyBwcmludGYoIlxuIE51bWJlciBpcyByZWFsLi4uXG4iKTsKe3NpZ259e2RpZ2l0fShcLntkaWdpdH0/KT97ZXhwfSBwcmludGYoIlxuIE51bWJlciBpcyBleHBvbmVudGlhbC4uLlxuIik7CiUlCmludCB5eXdyYXAoKQp7CnJldHVybiAxOwp9CmludCBtYWluKCkKewpjaGFyIG15U3RyaW5nWzEwMF07CmZnZXRzIChteVN0cmluZywgc2l6ZW9mKG15U3RyaW5nKSwgc3RkaW4pOwp5eV9zY2FuX3N0cmluZyhteVN0cmluZyk7Cnl5bGV4ICgpOwp9