import java.util.Arrays; import java.util.Scanner; public class NumberBlock { public static void main(String[] args) { Scanner s = new Scanner(System.in); int L = s.nextInt(), N = s.nextInt(), sum = 0; int[] W = new int[N]; for(int i = 0;i