You are given a permutation p_1,p_2,…,p_n. You can do the following operations repeatedly:
You want to know how many distinct permutations you can get using operations. The answer can be large, output the answer modulo 998244353.
The first line contains an integer T denoting the number of test cases (1≤T≤100000).
The first line in a test case contains two integers n and c (2≤c≤500000, 2≤n≤500000). The sum of n over all test cases does not exceed 500000.
The second line in a test case contains a permutation p_1,…,p_n (1≤p_i≤n).
For each test case, output one line containing the answer modulo 998244353.