A cluster scheduler needs to know the peak number of simultaneously running
jobs and when that peak was FIRST reached. Each job runs over [start, end)
— it occupies the cluster from start (inclusive) to end (exclusive), so a job
ending at time t does not overlap one starting at t.
Input Format:
Line 1: n (number of jobs)
Lines 2 to n+1: start end (integers, start < end)
Output Format:
max <peak concurrency>
at <earliest time the peak is reached>