atcoder.jp/contests/ar…
#include<bits/stdc++.h>
#define debug1(a) cout<<#a<<'='<< a << endl;
#define debug2(a,b) cout<<#a<<" = "<<a<<" "<<#b<<" = "<<b<<endl;
#define debug3(a,b,c) cout<<#a<<" = "<<a<<" "<<#b<<" = "<<b<<" "<<#c<<" = "<<c<<endl;
#define debug4(a,b,c,d) cout<<#a<<" = "<<a<<" "<<#b<<" = "<<b<<" "<<#c<<" = "<<c<<" "<<#d<<" = "<<d<<endl;
#define debug5(a,b,c,d,e) cout<<#a<<" = "<<a<<" "<<#b<<" = "<<b<<" "<<#c<<" = "<<c<<" "<<#d<<" = "<<d<<" "<<#e<<" = "<<e<<endl;
#define debug0(x) cout << "debug0: " << x << endl
#define fr(t, i, n)for (long long i = t; i < n; i++)
#define YES cout<<"Yes"<<endl
#define NO cout<<"No"<<endl
#define fi first
#define se second
#define int long long
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
typedef pair<int,int> PII;
typedef pair<LL,LL> PLL;
const int N = 5e3+10,mod = 998244353;
int C[N][N];
int f[N];
void solve()
{
int n,m;cin >> n >> m;
C[1][0] = C[1][1] = 1;
for(int i = 2;i <= n;i ++)
{
for(int j = 0;j <= i;j ++)
{
if(j)C[i][j] = (C[i-1][j] + C[i-1][j-1]) % mod;
else C[i][j] = 1;
}
}
f[0] = 1;
for(int i = 2;i <= m;i += 2)
{
for(int j = 0;j <= n && j <= i;j += 2)
{
f[i] = (f[i] + f[(i-j)/2]*C[n][j]) % mod;
}
}
cout << f[m] << endl;
}
signed main()
{
int T = 1;
while(T--){
solve();
}
return 0;
}