import sys sys.setrecursionlimit(10000000) MOD = 10 ** 9 + 7 INF = 10 ** 15 from collections import deque,defaultdict,Counter def main(): N,D,K = map(int,input().split()) X = [int(input()) for _ in range(N)] ans = 0 L,R = -1,-1 q = deque([]) for i in range(N): if q and q[0][1] < i - D: q.popleft() if q and X[i] - q[0][0] > ans: ans = X[i] - q[0][0] L = q[0][1] R = i if (not q) or (q[-1][0] <= X[i]): q.append((X[i],i)) if L < 0: print(0) else: print(ans * K) print(L,R) if __name__ == '__main__': main()