import java.util.Scanner; public class Main { static int[] tatesum,yokosum; public static void main(String[] args){ // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int B = sc.nextInt(); int N = sc.nextInt(); int[] can = new int[N]; for(int i=0;i2){ long lm=(2*l+r)/3, rm=(l+2*r)/3; long lsum=0,rsum=0; for(int i=0;iB){ r=lm; }else if(rsum>B){ r=rm; }else if(ll<=rr){ r=rm; }else{ l=lm; } } int ans=0; for(int i=0;i