import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Box { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int l = scanner.nextInt(); int n = scanner.nextInt(); ArrayList width = new ArrayList(); for(int i=0;i