#include #include int main(void) { int l; int n; int w[100001]; int i; int j; int temp; int sum=0; int c=0; scanf("%d",&l); scanf("%d",&n); for(i=0;i=0;i--){ for(j=0;jw[j+1]){ temp=w[j]; w[j]=w[j+1]; w[j+1]=temp; } } } for(i=0;i=l){ if(sum==l){ c++; } break; } c++; } printf("%d\n",c); return 0; }