1345 IF M=0 AND TI(MA,N)>0 THEN GB=GB+1