n,d,k = map(int,input().split()) v=int(input()) tmp_min = v tmp_day = d mx = 0 mx_s=0 mx_t=0 dp = [v] for i in range(1,n): v = int(input()) dp.append(v) if tmp_min>v: tmp_min=v tmp_day=d else: tmp_day-=1 if mxdp[j]: tmp_min=dp[j] tmp_day=d-(i-j) if tmp_min==last_min: break if mx==0: print(0) else: print(mx*k) print(mx_s,mx_t)