题目描述
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
输入格式
见题面
输出格式
见题面
样例输入
3 3
样例输出
14