fun main( args : Array ) { readLine() val bs = readLine()!! .split(" ") .map { it.toInt() }.sorted() val ans = (0..bs.size-2).map { i -> bs[i+1] - bs[i] }.min() println(ans) }