You are given a sequence [Math Processing Error]a1,a2,…,an consisting of [Math Processing Error]n integers.
You may perform the following operation on this sequence: choose any element and either increase or decrease it by one.
Calculate the minimum possible difference between the maximum element and the minimum element in the sequence, if you can perform the aforementioned operation no more than [Math Processing Error]k times.
Input
The first line contains two integers [Math Processing Error]n and [Math Processing Error]k Math Processing Error — the number of elements in the sequence and the maximum number of times you can perform the operation, respectively.
The second line contains a sequence of integers [Math Processing Error]a1,a2,…,an Math Processing Error.
Output
Print the minimum possible difference between the maximum element and the minimum element in the sequence, if you can perform the aforementioned operation no more than [Math Processing Error]k times.
Examples
Input
4 5
3 1 7 5
Output
2
Input