n = int(input()) l = [int(x) for x in input().split()] l.sort() t = 0 s = [] i = 0 while(i