In fact, the answer can be represented as a fraction Q/P, where gcd(P,Q)=1 and P,Q>0. Since these numbers can be very huge for large n, you are only required to print Q⋅P−1 mod 998244353.
For each test case, print a single line with the calculated value.