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