import java.util.Arrays; import java.util.Scanner; public class A000005 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int l = s.nextInt(); int n = s.nextInt(); int[] ws = new int[n]; for(int i=0;i