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