import java.util.Scanner; public class no5 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int bigboxL=sc.nextInt(); int N=sc.nextInt(); int[] blockarray = new int[N]; for(int i=0;i=blockarray[j]){ int swap=blockarray[i]; blockarray[i]=blockarray[j]; blockarray[j]=swap; } } } int cnt=0; boolean flag=false; for(int i=0;i=0)cnt++; if(bigboxL<=0){ flag=false; System.out.println(cnt); break; }else if(bigboxL<0){ flag=false; System.out.println(cnt); break; }else{ flag=true; } } if(flag){ System.out.println(cnt); } } }