%{
#define YYSTYPE long long int
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
%}

%token PreNumberTerms
%token PosNumberTerms
%token INT


%%

entrada: 
	| entrada  linha
	;

linha:   '\n'
        | PreNumberTerms INT PosNumberTerms '\n' {printf("%lld\n",$2);}
	| error '\n' {yyerrok;}
	;


%%

main() {
    yyparse();
}

yyerror(char *s) {
}
