s = int(input()) m = [int(k) for k in sorted(input().split())] g = s//2 l = m[g-1]+m[g] (print(l/2) if l/2*10%10 != 0 else print(l//2))if s%2 == 0 else print(m[g])