You are given jobs. You must do all jobs in some order.
For each job , two integers and are given.
If job is done among the first jobs of the order, it gives you points. Otherwise, it gives you points.
Choose the order of the jobs to maximize the total number of points.