9960 FOR Z=0 TO NIN