the kingdom Lazyland home n idler these idler incredibly lazy create problem ruler mighty King Lazyland Today k important job kingdom k le n perform every job person person job the King allow idle choose job want ith idler choose job a_i unfortunately job choose King persuade idler choose job the King know take b_i minute persuade ith idler he ask minister labour calculate minimum total time need spend persuade idler job can help