n,d,K,*x=$<.read.split.map &:to_i m=[0,0,0] (0..n-=1).each{|j| (j+1..[j+d,n].min).each{|k| v=x[k]-x[j] rescue binding.mirb m=[v,j,k] if v>m[0] } } m[0]<1?p(0):puts(m[0]*K,m[1,2]*' ')