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