n = int(input()) a_lst = list(map(int, input().split(' '))) a_lst.sort() if n%2 == 1: print(a_lst[n//2]) else: print((a_lst[int(n/2)]+a_lst[int(n/2)-1])/2)