N = int(input()) A = sorted(list(map(int, input().split()))) if N % 2 == 1: print(A[(N//2)]) else: print(sum(A[(N//2)-1:(N//2)+1]) / 2)