N = input() A = sorted(map(int,raw_input().split(" "))) print (A[N/2]+A[N/2-(N&1^1)])/2.