The input contains multiple test cases. For each test case, it consists of M + 1 lines:
Line 1: a single positive integer M (M <= 80), indicating the number of line segments Bob has drawn.
Line 2 to M +1: each contains two different integers S, E (-10000 <= S, E <=10000), indicating the two end positions of a line segment.