#P1133C. Balanced Team
Balanced Team
Description
You are a coach at your local university. There are students under your supervision, the programming skill of the -th student is .
You have to create a team for a new programming competition. As you know, the more students some team has the more probable its victory is! So you have to create a team with the maximum number of students. But you also know that a team should be balanced. It means that the programming skill of each pair of students in a created team should differ by no more than .
Your task is to report the maximum possible number of students in a balanced team.
The first line of the input contains one integer () — the number of students.
The second line of the input contains integers (), where is a programming skill of the -th student.
Print one integer — the maximum possible number of students in a balanced team.
Input
The first line of the input contains one integer () — the number of students.
The second line of the input contains integers (), where is a programming skill of the -th student.
Output
Print one integer — the maximum possible number of students in a balanced team.
Note
In the first example you can create a team with skills .
In the second example you can take all students in a team because their programming skills are equal.
In the third example you can create a team consisting of a single student (and you cannot create a team consisting of at least two students).