7585 IF KM=4 AND X<=P(1) THEN KE=1