A car driver needs to plan a journey following a highway. With the tank full he can drive for at most kms. Knowing the location of the petrol stations on the road, which is the minimum number of refill stops necessary to travel for at least kms? Assume that, initially, the tank of the car is full of gasoline.
Input is all natural numbers, and consists of several cases. Every case begins with and , followed by , followed by the distances in kms from the departure point to each petrol station. Assume , , , and that all the given distances are different and between 1 and . For all the given cases, it is always possible to reach the km .
For every case, print the minimum number of stops to travel for at least kms.
Input
2 5 3 1 3 4 3 10 4 1 8 6 4 15 10 6 5 2 9 4 1 3
Output
2 4 0