a[1005],i;c(int*a,int*b){return*a-*b;}main(){for(;~scanf("%d",a+i++);)qsort(a+1,i-2,4,c);i=!printf("%f",(a[i/2]+a[~-i/2])*.5);}