Assume there are N persons and each person needs exactly one cab. For each person, you are given the start time and end time (both inclusive) during which that person will travel. Find the minimum number of cabs required.
Input:
First line contains an integer, N denoting the number of persons. Next N lines contains 4 integers, and , () (), denoting the start time () and end time (). It is guaranteed that start and end time will not span midnight.
Output:
Print the minimum number of cabs required.
Start and end time of N persons are:
So, we need only 3 cabs.