n = gets.to_i numArr = gets.split(" ").map(&:to_i).sort if n%2==0 then puts (numArr[n/2-1] + numArr[n/2])/2.to_f else puts numArr[n/2.floor] end