import sequtils, strutils, algorithm var n = readLine(stdin).parseInt x:seq[int] = readLine(stdin).split.map(parseInt) res:seq[int] = @[] x = sorted(deduplicate(x), cmp[int]) if x.len < 2: echo 0 else: for i in 1..