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