n = gets.to_i-1 l = gets.split(" ").map(&:to_f).sort! p l[n/2] if n%2==0 p (l[n/2]+l[n/2+1])/2 if n%2==1