#include using namespace std; typedef long long int ll; constexpr ll mod=998244353; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n,k,x,y; cin >> n >> k >> x >> y; vector a(k); for(int i=0;i> a[i]; } sort(a.begin(), a.end()); a.erase(unique(a.begin(), a.end()),a.end()); k=a.size(); vector> dp(n,vector(k,0)); for(int i=0;i=mod){ dp[i][nx]-=mod; } } } } } ll res=0; for(int i=0;i