Get up! Get up!!! It's 7:45 now. I'll be late for the class at 8:00.
There're several ways you can get to classroom. But the problem is that there's only little time left.
So please tell me how many Optimized Ways that I can choose?
The Optimized Way means: The minimum time of from next position to the class must be less than the minimum time of from current position to the class.
For each tests, you should output the number of Optimized Ways.