#include <bits/stdc++.h>
using namespace std;
long long int same_dp_white[1002][2003], diff_dp_white[1002][2003];
long long int same_dp_black[1002][2003], diff_dp_black[1002][2003];
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  for (int i = 0; i <= k; i++) {
    same_dp_white[0][i] = 0;
    same_dp_black[0][i] = 0;
    diff_dp_white[0][i] = 0;
    diff_dp_black[0][i] = 0;
  }
  for (int i = 1; i <= n; i++) {
    same_dp_white[i][0] = 0;
    same_dp_black[i][0] = 0;
    diff_dp_white[i][0] = 0;
    diff_dp_black[i][0] = 0;
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= k; j++) {
      same_dp_white[i][j] =
          (same_dp_white[i - 1][j] + diff_dp_black[i - 1][j] +
           diff_dp_white[i - 1][j] + same_dp_black[i - 1][j - 1]) %
          998244353;
      same_dp_black[i][j] =
          (same_dp_black[i - 1][j] + diff_dp_black[i - 1][j] +
           diff_dp_white[i - 1][j] + same_dp_white[i - 1][j - 1]) %
          998244353;
      diff_dp_black[i][j] =
          (diff_dp_black[i - 1][j] + diff_dp_white[i - 1][j - 2] +
           same_dp_black[i - 1][j - 1] + same_dp_white[i - 1][j - 1]) %
          998244353;
      diff_dp_white[i][j] =
          (diff_dp_black[i - 1][j - 2] + diff_dp_white[i - 1][j] +
           same_dp_black[i - 1][j - 1] + same_dp_white[i - 1][j - 1]) %
          998244353;
      if (i == 1 && j == 1) {
        same_dp_black[i][j] = 1;
        same_dp_white[i][j] = 1;
      } else if (i == 1 && j == 2) {
        diff_dp_black[i][j] = 1;
        diff_dp_white[i][j] = 1;
      }
    }
  }
  cout << (same_dp_black[n][k] + same_dp_white[n][k] + diff_dp_black[n][k] +
           diff_dp_white[n][k]) %
              998244353;
}
