n = int(input()) l = [int(i) for i in input().split()] l.sort() if n % 2 != 0: print(l[int(n / 2)]) else: print((l[int(n / 2) - 1] + l[int(n / 2)]) / 2)