let N = readLine()! let L = readLine()!.split(separator: " ").map{Int($0)!}.sorted() var T = [Int]() for i in 0...L.count - 2{ T += [L[i+1] - L[i]] } print(T.min()!,Int(L.last! - L.first!))