N = int(input()) A = sorted(map(int, input().split())) print([A[N//2], (A[N//2-1] + A[N//2]) / 2][N % 2 == 0])