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