3370 FOR K=1 TO IP