Jabbing Jets

아직 제출이 없습니다시간 제한1초메모리 제한2048 MB

문제

You have just gotten a new job at the Bathroom Accessories Production Company. The first task you are given is to jab holes into showerheads. To prove yourself, you have decided you want to create as many holes as possible.

However, you cannot just randomly drill holes everywhere in the showerhead. (At least, not without getting fired.) In order to ensure that the showerheads look aesthetically pleasing, the company has composed some guidelines which you will have to follow. See Figure J.1 for some examples of aesthetically pleasing showerheads.

  • The holes should be arranged in concentric circles of radii r_1,r_2,,r_nr\_1, r\_2, \ldots, r\_n: the center of every hole should be on one of these circles.
  • The distance between the centers of any two holes should be at least ee.

How many holes can you make at most?

Figure J.1: Possible aesthetically pleasing showerheads for the first two samples.

입력

The input consists of:

  • One line with two integers nn and ee (1n,e1041 \leq n, e \leq 10^4),
  • One line with nn integers r_1,,r_nr\_1, \ldots, r\_n (1r_i1041 \leq r\_i \leq 10^4), the radii of the circles.

It is guaranteed that the numbers r_ir\_i are given in increasing order, and that r_i+1r_ier\_{i+1} - r\_i \geq e. Furthermore, it is guaranteed that increasing any radius r_ir\_i by at most 10610^{-6} will not change the final answer.

출력

Output the maximal number of holes that you can make in the showerhead.