import java.io.PrintWriter; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scanner=new Scanner(System.in); PrintWriter out=new PrintWriter(System.out); int n=scanner.nextInt(); int l=scanner.nextInt(); int[] x=new int[n]; int[] w=new int[n]; int[] t=new int[n]; for(int i=0; i