a basketball competition hold number player team maximum minimum limit necessarily 5 player team match there n candidate player competition train Pak chanek good basketball coach earth the ith candidate player power P_iPak Chanek form zero team N candidate player condition candidate player join team each Pak Chaneks team send compete enemy team power D in match team send say defeat enemy team sum power form player strictly great DOne Pak Chaneks skill team form play match change power player team equal big player power teamdetermine maximum number win achieve Pak Chanek