N = int(input()) Ass = sorted([int(i) for i in input().split()]) print( Ass[int(N/2)] if N%2!=0 else (Ass[int(N/2-1)]+Ass[int(N/2)])/2)