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