- Time limit: 1.00 s
- Memory limit: 512 MB
You are given sticks with lengths . You must make exactly cuts to the sticks, so that the number of sticks becomes .
After making the cuts, the difference between the length of the longest and shortest sticks should be as small as possible. Your task is to compute the smallest possible difference for all amounts .
The cuts must keep the lengths of the sticks positive integers. You may assume that the sticks can be cut times.
Input
The first line contains two integers : the number of sticks and the maximum number of cuts.
The second line contains integers : the lengths of the sticks.
Output
Print one line with integers: the smallest possible difference if exactly cuts are made.
Constraints
Example
Input:
3 3 7 3 2
Output:
2 1 2
Explanation: When , you can cut the first stick into two sticks of lengths and . After this, the stick lengths are and the maximum difference is .