Mr. Milky has $$$N$$$ friends coming over, numbered from $$$1$$$ to $$$N$$$. Each friend has a strong preference for their favorite type of milk and how much of it. Since Mr. Milky has very simple friends, the $$$i$$$-th friend prefers milk type $$$i$$$ and $$$C_i$$$ buckets of said milk type.
However, after properly preparing the buckets of milk, Mr. Milky knocks them all over and now needs to clean it all up! He uses a special mop that can clean up one bucket spill in one minute.
Given that all $$$N$$$ friends will arrive at time $$$T$$$ and that the $$$i$$$-th friend will immediately leave if their $$$C_i$$$ buckets of milk are all over the floor, find the maximum number of friends that can stay.
The first line contains integers $$$N$$$ ($$$1 ≤ N ≤ 10^5$$$) and $$$T$$$ ($$$1 ≤ T ≤ 10^5$$$), representing the number of friends coming over and the time they will all arrive.
The second line contains integers $$$C_1, C_2, \ldots, C_N$$$, describing the number of buckets of milk each friend would like ($$$1 ≤ Ci ≤ 10^3$$$).
A single integer stating the maximum number of friends that can stay.
3 95 1 3
3
In the example test case, Mr. Milky can clean up all of the buckets of milk in $$$5 + 1 + 3 = 9$$$ minutes, which is within the time constraint.
| Name |
|---|


