Events should arrive in timestamp order, but the network reorders some. An
event is LATE when its timestamp is strictly less than the maximum timestamp
seen before it (in arrival order). Its lateness is that maximum minus its
timestamp.
Report how many events were late and the maximum lateness observed.
Input Format:
Line 1: n (number of events)
Lines 2 to n+1: one integer timestamp each, in arrival order
Output Format:
late <count>
max_lateness <value> (0 when no events are late)