import java.util.*; public class Yukicoder_5{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int L = stdIn.nextInt(); int N = stdIn.nextInt(); int[] W = new int[N]; for(int i=0;i