#arc147d. [arc147_d]Sets Scores

[arc147_d]Sets Scores

Problem Statement

Consider a sequence of integer sets of length NN: S=(S1,S2,dots,SN)S=(S_1,S_2,\\dots,S_N). We call a sequence brilliant if it satisfies all of the following conditions:

  • SiS_i is a (possibly empty) integer set, and its elements are in the range \[1,M\]. (1leileN)(1 \\le i \\le N)

  • The number of integers that is included in exactly one of SiS_i and Si+1S_{i+1} is 11. (1leileN1)(1 \\le i \\le N-1)

We define the score of a brilliant sequence SS as displaystyleprodi=1M\\displaystyle \\prod_{i=1}^{M} (( the number of sets among S1,S2,dots,SNS_1,S_2,\\dots,S_N that include ii.)).

Find, modulo 998244353998244353, the sum of the scores of all possible brilliant sequences.

Constraints

  • 1leN,Mle2times1051 \\le N,M \\le 2 \\times 10^5
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN MM

Output

Print the answer.


Sample Input 1

2 3

Sample Output 1

24

Among all possible brilliant sequences, the following 66 have positive scores.

  • S1=1,2,S2=1,2,3S_1=\\{1,2\\},S_2=\\{1,2,3\\}
  • S1=1,3,S2=1,2,3S_1=\\{1,3\\},S_2=\\{1,2,3\\}
  • S1=2,3,S2=1,2,3S_1=\\{2,3\\},S_2=\\{1,2,3\\}
  • S1=1,2,3,S2=1,2S_1=\\{1,2,3\\},S_2=\\{1,2\\}
  • S1=1,2,3,S2=1,3S_1=\\{1,2,3\\},S_2=\\{1,3\\}
  • S1=1,2,3,S2=2,3S_1=\\{1,2,3\\},S_2=\\{2,3\\}

All of them have a score of 44, so the sum of them is 2424.


Sample Input 2

12 34

Sample Output 2

786334067