N = int(input()) A = sorted([int(x) for x in input().split()]) print(A[N//2]) if N%2 else print((A[N//2]+A[N//2 - 1])/2)