N = map(int, raw_input()) xs = list( map(int, raw_input().split()) ) xs = set(xs) xs.sort() mins = [] for i in range(len(xs) -1): mins.append(abs(xs[i] - xs[i+1])) print mins