#include <bits/stdc++.h>
using namespace std;
const long long modulo = 998244353;
int main() {
  long long n, k;
  cin >> n >> k;
  long long bb[2010];
  long long bw[2010];
  long long wb[2010];
  long long ww[2010];
  for (long long i = 0; i < 2010; ++i) {
    bb[i] = 0;
    bw[i] = 0;
    wb[i] = 0;
    ww[i] = 0;
  }
  long long c = 1;
  bb[1] = 1;
  bw[2] = 1;
  wb[2] = 1;
  ww[1] = 1;
  while (c < n) {
    long long nbb[2010];
    long long nbw[2010];
    long long nwb[2010];
    long long nww[2010];
    for (long long i = 0; i < 2010; ++i) {
      nbb[i] = 0;
      nbw[i] = 0;
      nwb[i] = 0;
      nww[i] = 0;
    }
    for (long long i = 1; i <= k; ++i) {
      nbb[i] = bb[i] + bw[i] + wb[i] + ww[i - 1];
      nww[i] = ww[i - 1] + bw[i] + wb[i] + ww[i];
      nbw[i] = bb[i - 1] + ww[i - 1] + bw[i] + (i > 1 ? wb[i - 2] : 0);
      nwb[i] = bb[i - 1] + ww[i - 1] + wb[i] + (i > 1 ? bw[i - 2] : 0);
      nbb[i] %= modulo;
      nbw[i] %= modulo;
      nwb[i] %= modulo;
      nww[i] %= modulo;
    }
    for (long long i = 0; i < 2010; ++i) {
      bb[i] = nbb[i];
      bw[i] = nbw[i];
      wb[i] = nwb[i];
      ww[i] = nww[i];
    }
    ++c;
  }
  cout << ((bb[k] + bw[k] + wb[k] + ww[k]) % modulo) << endl;
  return 0;
}
