Velen calls a sequence "n-beautiful", if it satisfies the following three conditions:
Velen takes inspiration from "n-beautiful" sequences, so he is interested in the number of "n-beautiful" sequences of length mm.
Could you help him?
Since the answer can be very large, you only need to output the answer modulo 998244353.
The input consists of multiple test cases.
The first line contains an integer T (1≤T≤4) denoting the number of test cases.
Each test case consists of only one line containing two integers n,m (3≤n<m≤2×105).
3
3 5
5 10
100000 200000
123
8001745
700646201