N = gets.chomp.to_i num = gets.split(' ').map(&:to_i).sort if N % 2 == 0 puts (num[N/ 2 - 1] + num[N/2]) / 2.0 else puts num[N/2] end