#Lutece1706. 澪壹背包

澪壹背包

Migrated from Lutece 1706 澪壹背包

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

咸鱼钟有nn件物品,还有一个VV体积的 绿色 背包

ii件物品,有viv_i的体积,与wiw_i的价值

你可以选择一些物品放入背包

请问背包内物品最大的价值可能是多少?

Input

多组数据,不超过1010

每一组数据以两个整数nnVV开始

接下来为nn行,每一行两个整数viv_iwiw_i代表第ii个物品的体积与价值

保证nn不大于8080,其他所有数为随机生成并且不大于1e91e9

Output

对每一组数据,输出一个整数,表示背包内物品的最大可能的价值

Samples

4 20
2 56546
19 351
7 2563
18 23212
79758

Note

人呀,就是不可预料,自己的代码能跑多快

Resources

2017 UESTC Training for Search Algorithm & String