def main(): N = int(input()) A = tuple(map(int, input().split())) a = sorted(A) idx = N // 2 ans = (a[idx] + a[-(idx + 1)]) / 2 print(ans) main()