a=int(input()) b=list(map(int,input().split())) b.sort() if len(b)%2==0: print(b[len(b)/2]) else: c=a//2 print((b[c]+b[c+1])/2)