n = gets.chomp.to_i a = gets.split.map(&:to_i).sort puts if n % 2 == 1 a[n / 2] else (a[n / 2] + a[n / 2 - 1]) * 0.5 end