double minval,maxval,sum;