x = int(input()) a_lst = list(map(int,input().split())) a_lst.sort() y = x%2 if y == 0: c = x//2-1 d = c+1 e = (a_lst[c]+a_lst[d])/2 else: e = a_lst[x//2] print(e)