import math l = int(input()) n = list(map(int, input().split())) n.sort() if l % 2 != 0: print(n[math.floor(l/2)]) else: print((n[l//2] + n[l//2 - 1]) / 2)