#include <bits/stdc++.h>
using namespace std;
long long read() {
  long long x;
  scanf("%lld", &x);
  return x;
};
long long n, k;
long long dp[2][2050][4];
const long long mod = 998244353;
int main() {
  cin >> n >> k;
  memset(dp, 0, sizeof(dp));
  dp[1][1][0] = 1;
  dp[1][1][3] = 1;
  dp[1][2][1] = 1;
  dp[1][2][2] = 1;
  long long now = 1, pre = 0;
  for (long long i = 2; i <= n; i++) {
    now ^= 1, pre ^= 1;
    memset(dp[now], 0, sizeof(dp[now]));
    for (long long j = 1; j <= k; j++) {
      for (long long s = 0; s <= 3; s++) {
        if (dp[pre][j][s] == 0) continue;
        for (long long e = 0; e <= 3; e++) {
          long long nj = j;
          if (s == 0 && e != 0)
            nj++;
          else if (s == 0) {
          } else if (s == 1 && e == 2)
            nj += 2;
          else if (s == 1) {
          } else if (s == 2 && e == 1)
            nj += 2;
          else if (s == 2) {
          } else if (s == 3 && e != 3)
            nj++;
          else if (s == 3) {
          }
          if (nj > k) continue;
          dp[now][nj][e] += dp[pre][j][s];
          dp[now][nj][e] %= mod;
        }
      }
    }
  }
  long long ans = 0;
  for (long long i = 0; i <= 3; ++i) {
    ans += dp[now][k][i];
    ans %= mod;
  }
  cout << ans << endl;
}
