n,m = gets.chomp.to_r/2, gets.split.map(&:to_f).sort p m[n] / 2 + m[n-0.5]/2