n = gets.chomp!.to_i a = gets.chomp!.split(' ').map(&:to_i).sort! if a.length.odd? puts a[n / 2] else puts (a[n / 2 - 1] + a[n / 2]) / 2.0 end