package yukicoder; import java.util.Scanner; public class N489 { public static void main(String[] args) { Scanner sc=new Scanner (System.in); int N=sc.nextInt(),D=sc.nextInt(),K=sc.nextInt(),x[]=new int[N],j=0,k=0; int buf=0; long MAX=0; for(int i=0;iMAX&&buf>0) { MAX=buf; j=i;k=i+ii; } } } } if(MAX==0) { System.out.println(0); } else { System.out.println(MAX*K+"\n"+j+" "+k); } } }