n,*a=$<.read.split.map &:to_i;m=n/2;a.sort!;p n&1>0?a[m]:(a[m-1]+a[m])/2.0