Given a sequence of integers, , print the minimum value of for some . In other words, find the minimum difference between any integers in the sequence.
Note that is the absolute value function.
Input Specification
The first line will contain the integer .
The second line will contain integers, , the sequence of integers.
Output Specification
Print the minimum difference between any integers in the sequence.
Sample Input
5
1 5 3 9 2
Sample Output
1
Explanation for Sample Input
The minimum difference is .
Comments