import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Ellen { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int maxW = scan.nextInt(); int num = scan.nextInt(); int[] wArray = new int[num]; List list = new ArrayList<>(); //Arrays.sort(widthArray); for(int i =0; i