long s,q;x,j=-2,a[9];c(int*a,int*b){x=*a-*b;}main(i){for(;~scanf("%d",a+j);q+=++j?a[j-1]:0);qsort(a,j,4,c);i=a[j/2];q/=j;for(q