On a cliff are n unsportsmanlike lemmings that want to go downto the sea. In addition, each Lemming gets its own climbing pole,where he can slide down. In order not to be so boring, there areoccasional crossbars between every two adjacent poles. If a lemmingencounters one, it switches to the neighboring rod and slidesfurther down there. The crossbars are all at different heights(counted from above) and are not sorted in the input.
The entry is made from the standard input. The first value is thenumber of bars, the following pairs of numbers contain the heightand the left end of the respective
PayPal Gateway not configured
PayPal Gateway not configured