make solve problem decoforce lot different online judge each problem denote difficulty positive integer number difficulty measure judge problem difficulty d decoforce hard problem difficulty d judge Makes choose n problem solve Decoforces difficulty a1a2an he solve problem arbitrary order though solve problem difficulty ai solved problem difficulty matter online judge itBefore start choose list problem make solve problem maximum difficulty kWith give condition easy make can not solve choose problem matter order choose so want solve problem judge finish solve problem list for positive integer y exist problem difficulty y judge DecoforcesMakes solve problem judge time is not necessary problem choose list right anothermake do not free time ask calculate minimum number problem solve judge order solve choose problem decoforce