Bob has a generator which can generate a discrete probability distribution according to a given vector and a parameter.
This generator can be described as follows:
Now, given a vector $y[1..k]$, compute the probability density of the discrete probability distribution $y'[1..k]$ the algorithm output at the given vector $y[1..k]$. More specificly, compute the probability density $f_{GENERATE(x,k,t)}(y)$. Here, we see $GENERATE(x,k,t)$ as a random vector.
You should print the answers module $998244353$.