3700 IF SN>0 AND SN<X THEN X=SN