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