n=input() a=sorted(map(float,raw_input().split())) if n&1: print a[n/2] else: n/=2 a=a[n-1:n+1] print sum(a)/2