g '+'=(+) g _=(*) n!(o:s)|[(m,t)]<-reads s=g o m n!t n!_=n m@main=getLine>>=print.(0!).('+':)>>m