#include using namespace std; using ll=long long; const ll MOD=100000000000000007; int main(){ int n,m; cin>>n>>m; vector x(m); for(int i=0;i>x[i]; vector dp(n); dp[0]=1; for(int i=0;i=MOD){ dp[i+x[j]]-=MOD; } } } } cout<