#include <bits/stdc++.h>
using namespace std;
int N, K;
long long DP[2005][2005][4];
void dp() {
  DP[1][1][0] = 1;
  DP[1][2][1] = 1;
  DP[1][2][2] = 1;
  DP[1][1][3] = 1;
  for (int i = 1; i <= N - 1; i++) {
    for (int j = 1; j <= i * 2; j++) {
      for (int k = 0; k <= 3; k++) {
        for (int l = 0; l <= 3; l++) {
          int nxj;
          if (k == 0) {
            if (l == 0)
              nxj = j;
            else
              nxj = j + 1;
          } else if (k == 1) {
            if (l == 2)
              nxj = j + 2;
            else
              nxj = j;
          } else if (k == 2) {
            if (l == 1)
              nxj = j + 2;
            else
              nxj = j;
          } else {
            if (l == 3)
              nxj = j;
            else
              nxj = j + 1;
          }
          DP[i + 1][nxj][l] = (DP[i + 1][nxj][l] + DP[i][j][k]) % 998244353;
        }
      }
    }
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> N >> K;
  dp();
  long long ans = 0;
  for (int i = 0; i <= 3; i++) ans = (ans + DP[N][K][i]) % 998244353;
  cout << ans << '\n';
  return 0;
}
