Now I give you n(n <= 40) sugars, each sugar has some value and volum, you also have a package which Volum is V(1 <= V <= 1000000000), Now do you know how to choose these sugars that the sum of value is maximum(the sum of volum <= V)
For each test case, print the maximum value which you can get.