#P324. 【例55.2】 约翰书架

【例55.2】 约翰书架

Description

John recently bought a bookshelf to store his cow-raising books, but it quickly filled up, leaving only the top shelf empty.
John has NN cows (1<N<20,0001 < N < 20,000), each with its own height hih_i (1<hi<10,0001 < h_i < 10,000), and the total height of all cows is ss. The bookshelf has a height BB (1<B<s<2,000,000,0071 < B < s < 2,000,000,007).
To reach the top shelf, cows can stand on each other's backs, stacking up until their total height is at least the height of the bookshelf. Of course, the more cows used, the more dangerous it becomes. Help John find the solution that uses the minimum number of cows to reach the top shelf.

Input Format

The first line contains two space-separated integers NN and BB;
The next NN lines: the (i+1)(i+1)-th line contains the integer HiH_i.

Output Format

The minimum number of cows needed to reach the height of the bookshelf.

Sample

6 40
6
18
11
13
19
11
3