a[100],b[100001],C,N,i,k; main(m){ scanf("%d%d",&C,&N); for(;i= a[i] && b[m-a[i]] > 0 && (!b[m]||b[m-a[i]]+1