| 3835 - Highway Europe - Southeastern - 2007/2008 | |||||
| Submit | Ranking | ||||
Bob is a skilled engineer. He must design a highway that crosses a region with few villages. Since this region is quite unpopulated, he wants to minimize the number of exits from the highway. He models the highway as a line segment S
An input/output sample is in the table below. There is a single data set. The highway length L
Input
The program input is from the standard input. Each data set in the file stands for a particular set of a highway and the positions of the villages. The data set starts with the length L
Output
For each set of data the program prints the result to the standard output from the beginning of a line.
Sample Input
100
50
3
2 4
50 10
70 30
Sample Output
1
Southeastern 2007-2008