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