You are given three positive integers n, m, and k.
Your task is to calculate the total number of sequences A of length n that satisfy the following conditions:
Calculate the total number of such sequences A that satisfy the conditions and output the result modulo 998244353.
The first line contains an integer T(T≤1000), representing the number of test cases.
Each of the next T lines contains three integers n, m, and k(1≤n,m,k≤1018,k≤n), representing the parameters for one test case.
1
11 2 1
1024