Competition

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

문제

A wrestling competition will be held tomorrow. A total of nn players will take part in it. The ii-th player's strength is a_ia\_i.

If there is a match between the ii-th player and the jj-th player, the result will depend solely on a_ia_j|a\_i - a\_j|. If a_ia_j>K|a\_i - a\_j| > K, the player with the higher strength will win. Otherwise, each player will have a chance to win.

The competition rules are a little strange. For each fight, the referee will choose two players from all remaining players uniformly at random and hold a match between them. The loser will be eliminated. After n1n - 1 matches, the last remaining player will be the winner.

Given the numbers nn and KK and the array aa, find how many players have a chance to win the competition.

입력

The first line of the input contains two integers nn and KK (1n1051 \leq n \leq 10^5, 0K<1090 \leq K < 10^9).

The second line contains nn integers a_ia\_i (1a_i1091 \leq a\_i \leq 10^9).

출력

Print a single line with a single integer: the number of players which have a chance to win the competition.