n = gets.to_i ary = gets.split(' ').map(&:to_i).sort half = n / 2 if n % 2 != 0 puts ary[half.floor] else puts (ary[half] + ary[half-1]) / 2 .to_f end