atcoder#ABC204F. [ABC204F] Hanjo 2

[ABC204F] Hanjo 2

Score : 600600 points

Problem Statement

We have a rectangular room that is HH meters long and WW meters wide. We will fill this entire room with tatami (rectangular mats) that are 22 meters long and 11 meter wide, and hanjo (square mats) that are 11 meter long and 11 meter wide. Each tatami can be placed vertically or horizontally. How many ways are there to fill the room? We distinguish ways that match only after rotation or reflection.

Since the count can be enormous, find it modulo 998244353998244353.

Constraints

  • 1H61 \leq H \leq 6
  • 1W10121 \leq W \leq 10^{12}

Input

Input is given from Standard Input in the following format:

HH WW

Output

Print the answer.

2 2
7

We have the following seven ways:

3 3
131
5 100
379944232

Be sure to find the count modulo 998244353998244353.