#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]; unordered_map dp; dp[0]=1; for(int i=0;i=MOD){ dp[i+x[j]]-=MOD; } } } dp.erase(dp.find(i)); } cout<