#D7703. Banned X
Banned X
Banned X
Find the number, modulo 998244353, of sequences of length N consisting of 0, 1 and 2 such that none of their contiguous subsequences totals to X.
Constraints
- 1 \leq N \leq 3000
- 1 \leq X \leq 2N
- N and X are integers.
Input
Input is given from Standard Input in the following format:
N X
Output
Print the number, modulo 998244353, of sequences that satisfy the condition.
Examples
Input
3 3
Output
14
Input
8 6
Output
1179
Input
10 1
Output
1024
Input
9 13
Output
18402
Input
314 159
Output
459765451
inputFormat
Input
Input is given from Standard Input in the following format:
N X
outputFormat
Output
Print the number, modulo 998244353, of sequences that satisfy the condition.
Examples
Input
3 3
Output
14
Input
8 6
Output
1179
Input
10 1
Output
1024
Input
9 13
Output
18402
Input
314 159
Output
459765451
样例
3 3
14