310 FOR N=1 TO K