%{
#include <stdio.h>
%}

%%
S : L '=' R
  | R
  ;
L : '*' R
  | 'i'
  ;
R : L
  ;

%%

main()
{ 
  extern int yydebug;
  yydebug = 1;
  return yyparse();
}

int yylex(void)
{
  int c;
  while((c = getchar()) == ' ');
  if (c == '\n') return 0;
  return c;
}

void yyerror()
{}
