1645 FOR Z=KI TO NVI