%{
#include<stdio.h>
int nbMots = 0;
%}
%%
aa {printf(1);}
b?a+b? {printf(2); }
b?a*b? {printf(3); }
.+ {printf(4); }
%%
int yywrap() {}
int main() {
yylex();
return 0;
}
JXsKICAgI2luY2x1ZGU8c3RkaW8uaD4KICAgaW50IG5iTW90cyA9IDA7CiV9CgpvcGVuIFwvXCoKY2xvc2UgXCpcLwoKJSUKCmFhIHtwcmludGYoMSk7fQpiP2ErYj8ge3ByaW50ZigyKTsgfQpiP2EqYj8ge3ByaW50ZigzKTsgfQouKyB7cHJpbnRmKDQpOyB9CgolJQoKaW50IHl5d3JhcCgpIHt9CgppbnQgbWFpbigpIHsKICAgIHl5bGV4KCk7CiAgICByZXR1cm4gMDsKfQ==