Server
You are in charge of a server that needs to run some submitted tasks on a first-come, first-served basis. Each day, you can dedicate the server to run these tasks for at most minutes. Given the time each task takes, you want to know how many of them will be finished today.
Consider the following example. Assume and the tasks take and minutes (in order they are submitted). Then, only four tasks can be completed. The first four tasks can be completed because they take minutes, but not the first five, because they take minutes which is greater than . Notice that although there is enough time to perform the sixth task (which takes minutes) after completing the fourth task, you cannot do that because the fifth task is not done yet.
Input
The first line contains two integers and where is the number of tasks. The next line contains positive integers no more than indicating how long each task takes in order they are submitted.
Output
Print the number of tasks that can be completed in minutes on a first-come, first-served basis.