soon school Olympiad Informatics hold Berland n schoolchildren participate thereat meeting jury Olympiad decide n participant depend result diploma second degree Thus student receive exactly diplomathey decide give min1 max1 diplomas degree min2 max2 diplomas second degree min3 max3 diploma degreeafter discussion decide choose option distribute diploma satisfy limitation maximize number participant receive diplomas degree of option select maximize number participant receive diplomas second degree if multiple option select option maximize number diploma degreechoosing good option distribute certificate entrust Ilya good programmer Berland however find important thing task choose good option distribute diploma base describe limitationsIt guarantee describe limitation way choose option distribute diploma n participant Olympiad receive diploma degree