#include #include #define MAXN 100002 #define int long long using namespace std; int n, k, dp[MAXN]; int arr[MAXN], ans; int MOD = 1000000000 + 9; signed main() { freopen("steps.in", "r", stdin); freopen("steps.out", "w", stdout); scanf("%lld", &n); scanf("%lld", &k); for(int i = 0; i < k; i ++) { scanf("%lld", &arr[i]); //cout<= arr[j]) { dp[i] += dp[i - arr[j]]; //cout<