You are given N items with their price (Pi) and value (Vi).
You are required to choose a subset of items such that (size of subset + sum of values of all selected elements)≥N and the sum of prices of all selected elements must be minimum.
Input format
Output format
For each test case, print a single line denoting the minimum value of the sum of prices of selected elements.
Constraints
We will choose the first and third item: (size of subset (2) + sum of values (0+1))=3 which is >=N(3) and price is 2+1=3 which is optimal