Selling apples by count a grocery store is selling apples by count. they want to set the same price for each apple that they sell. they received total n apples of different weight from the farm. to be able to set the same price for each apple, they need to select only those set of apples where the weight difference between the largest and the smallest apple is not more than k given the range k, what is the maximum number of apples they can select from the n apples.
Input format locked stub code in the editor reads the following input from stdin and passes it to the function: 1. the first line contains the range k.
2. the second line contains the number of apples n.
#Constraints
Output format the function must return an integer specifying the maximum number of apples that can be selected from the input set of n apples which are all within a weight range of maximum k among each other.
Sample input 0:
2
8
4
2
6
100
101
102
101
104
Sample Output 0: 4