n = gets.to_i ; N = n/2 ai = (gets.split.map{|a| a.to_f}).sort if n%2==0 then puts((ai[N]+ai[N-1])/2) else puts(ai[N]) end