you friend Ilya participate individual programming contest consist multiple stage a contestant 0 100 point inclusive stage independently contestantspoint receive contestant different stage form overall contest result suppose k stage contest complete for contestant k lfloor frack4 rfloor stage high score select score add this sum overall result contestant here lfloor t rfloor denote round t downFor example suppose 9 stage complete score 50 30 50 50 100 10 30 100 50 first 7 stage high score choose example stage 2nd 6th choose then overall result equal 50 50 50 100 30 100 50 430as n stage complete know point Ilya get stage however unknown stage hold you wonder small number additional stage result great equal Ilyas result theory find number