#include using namespace std; using ll = long long; const ll MOD = 998244353; ll dp[6001][6001]; int main() { int n,q; cin >> n >> q; vector A(n); for(int i =0;i> A[i]; dp[0][0] = 1; for(int i =0;i> b; cout<