# -*- coding: utf-8 -*- N = int(input()) A = list(map(int, input().split())) A.sort() l = N // 2 if N%2==0: print((A[l-1]+A[l])/2) else: print(A[l])