CF555B Case of Fugitive

Description

Andrewid the Android is a galaxy-famous detective. He is now chasing a criminal hiding on the planet Oxa-5, the planet almost fully covered with water. The only dry land there is an archipelago of $ n $ narrow islands located in a row. For more comfort let's represent them as non-intersecting segments on a straight line: island $ i $ has coordinates $ [l_{i},r_{i}] $ , besides, $ r_{i}<l_{i+1} $ for $ 1

Input Format

N/A

Output Format

N/A

Explanation/Hint

In the first sample test you can, for example, place the second bridge between points 3 and 8, place the third bridge between points 7 and 10 and place the first bridge between points 10 and 14. In the second sample test the first bridge is too short and the second bridge is too long, so the solution doesn't exist.