Question
Sweet Deal
Lila visits a store with P chocolate packs, where the ith pack costs Bi coins. She has Q coins available. Determine the maximum number of chocolate packs she can purchase.
Input
The first line of the input contains 2 space-separated integers P and Q.
The second line of the input contains P space-separated integers.
Output
Print the maximum number of chocolate packs Lila can purchase.
Example
Sample Input
5 12
4 3 9 7 6
Sample Output
2

Online