n = input() n = int(n) nums = [int(n)for n in input().split()] nums.sort(reverse = True) if n % 2 == 0: print((nums[n//2]+nums[n//2 + 1])/2) else: print((nums[n//2 + 1]))