import java.util.Scanner; public class Main { public static void main(String[] args){ /*Preprocessing*/ Scanner sc = new Scanner(System.in); int N =sc.nextInt(); int K =sc.nextInt(); int[] len =new int[K]; int [][] grid =new int[N][N]; int initScore=0; for(int i=0; imaxBlack_W){ maxBlack_W =cnt; maxY_W =j; maxX_W =start; } } } int maxBlack_H=0; int maxY_H=0; int maxX_H=0; for (int j=0;j+len[i]maxBlack_H){ maxBlack_H =cnt; maxY_H =start; maxX_H =j; } } } if(maxBlack_H>maxBlack_W){ a=maxY_H+1; b=maxX_H+1; c=maxY_H+len[i]; d=maxX_H+1; for(int j=maxY_H;j