gets x=gets.split.map(&:to_i).sort p (x[x.size/2]+x[(x.size-1)/2])/2.0