You are given an n, you can easily arrangement all the permutations with1 to . Now little C gives you m different numbers,values are in the range of , m in the range of and one other number x that does not appear in , the value in the range of .Now you are asked to figure out the number of legitimate permutations where comes after different numbers in all the permutations with1 to n. If the number of permutations is too large, take the modulus of 998244353