In a company there are employees. The skill level of the -th employee is denoted by an integer .
The company wants to start a new project, which requires some of the employees. A project is considered balanced
if the difference in skill between any two employees assigned to the project is at most .
For every from to , print the maximum number of employees that can be part of a balanced
project which contains employee .
Input
The first line of input contains two integers and (, ).
The second line of input contains integers () — the skill levels of the employees.
Output
For every from to , print the maximum number of employees that can be part of a balanced
project which contains employee .
Example 1
input
6 2
1 2 3 4 6 9
output
3 3 3 3 2 1
Note
For the first employee, a balanced project can contain employees , and .
For the second employee, a balanced project can contain employees , and .
For the third employee, a balanced project can contain employees , and .
For the fourth employee, a balanced project can contain employees , and .
For the fifth employee, a balanced project can contain employees and .
The sixth employee can be part of a balanced project only by themself.
Example 2
input
15 78
98 190 175 67 109 139 297 175 789 162 109 87 165 243 72
output
8 6 8 7 8 8 2 8 1 8 8 7 8 5 7