#include<iostream> using namespace std; int a[21],dp[101],h[101]; int main(){ int m,n; while(scanf("%d",&m)!=EOF){ scanf("%d",&n); for(int i=1;i<=n;i++) scanf("%d",&a[i]); for(int i=0;i<=m;i++){ dp[i] = 0; h[i] = 0; } for(in...