#include <bits/stdc++.h>
int bit(int i, int l) { return (i >> l & 1); }
int dp[1001][2001][4];
signed main() {
  int m = 4, n, k;
  scanf("%d %d", &n, &k);
  std::vector<std::vector<int>> cnt(m, std::vector<int>(m, 0));
  cnt[0][1] = 1;
  cnt[1][0] = 0;
  cnt[0][2] = 1;
  cnt[2][0] = 0;
  cnt[0][3] = 1;
  cnt[3][0] = 1;
  cnt[1][2] = 2;
  cnt[2][1] = 2;
  cnt[1][3] = 0;
  cnt[3][1] = 1;
  cnt[2][3] = 0;
  cnt[3][2] = 1;
  dp[1][1][0] = 1;
  dp[1][1][3] = 1;
  dp[1][2][1] = 1;
  dp[1][2][2] = 1;
  const int MOD = 998244353;
  for (int i = 1; i < n; i++) {
    for (int j = 1; j <= k; j++) {
      for (int mask1 = 0; mask1 < m; mask1++) {
        if (dp[i][j][mask1] == 0) {
          continue;
        }
        for (int mask2 = 0; mask2 < m; mask2++) {
          if (j + cnt[mask1][mask2] <= k) {
            int &val = dp[i + 1][j + cnt[mask1][mask2]][mask2];
            val += dp[i][j][mask1];
            val %= MOD;
          }
        }
      }
    }
  }
  int ans = 0;
  for (int i = 0; i < m; i++) {
    ans = (ans + dp[n][k][i]) % MOD;
  }
  printf("%d", ans);
}
