now Dmitry session pass n exam the session start day 1 last d day the ith exam place day a_i 1 le a_i le d a_i different Sample n3 d12 a359 Orange exam day before exam Dmitry rest 2 day second rest 1 day rest 3 day for session schedule Dmitry consider special value mu small rest time exam exam for example image mu1 in word schedule count exactly n number day rest exam i1 i0 start session exam then find mu minimum n numbersdmitry believe improve schedule session he ask change date exam change arbitrary value a_i help change date a_i remain different value mu large possiblefor example schedule advantageous Dmitry second exam end session the new schedule form now rest period exam equal 225 so mu2 Dmitry leave propose schedule unchanged way exam lead improvement situation