At the Olympiad in Informatics, participants were asked to N tasks on A[i] (i=1..N). Olympian Peter figured while B[i] the time it takes for him to solve each problem. What is the maximum amount of points can collect Peter, if Olympics last H hours?
The first line of the file recorded the number N and H. In the second - the value A[i], and the third - B[i] (i=1..N). All values are positive integers. 1 ≤ N ≤ 100, 1 ≤ H ≤ 10, 1 ≤ A[i], B[i] ≤ 100.
The answer of the problem - the maximum possible score.