Highway#794

Highway

1 second
64 megabytes
Easy

Bob is a skilled engineer who must design a highway crossing a region with a few villages. Because this region is sparsely populated, he wants to minimize the number of exits from the highway. He models the highway as a line segment (starting from zero), the villages as points in the plane, and the exits as points on . Knowing the positions of the highway and the villages, Bob must find the minimum number of exits such that each village is at most distance from at least one exit. It is known that all villages are at most distance from .

Input

The input is provided from a text file. Each data set in the file represents a particular highway and the positions of the villages. The data set begins with the length (an integer) of the highway. Then follow the value of distance (an integer), the number of villages, and for each village its location . The program must print the minimum number of exits.

White spaces may appear freely in the input. The input data are correct and terminate at the end of the file.

Output

For each data set, the program prints the result to the standard output—starting from the beginning of a new line. An input/output sample is given below. There is a single data set: the highway length is , the distance is , and there are villages with locations , , . The result for this data set is the minimum number of exits: .

Examples

Example 1

Loading
Loading