2810 FOR L=1 TO K