import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner s = new Scanner (System.in); int numVals = s.nextInt(); int [] nums = new int[numVals]; for (int i = 0; i < nums.length; i++){ nums[i] = s.nextInt(); } Arrays.sort(nums); int min = Integer.MAX_VALUE; for(int i = 0; i< nums.length-1;i++){ if (Math.abs(nums[i]-nums[i+1])