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