#include <bits/stdc++.h>
using namespace std;

#define int long long

const int maxn = 4e3 + 10, mod = 924844033;
int n, k, fac[maxn], inv[maxn], dp[maxn][maxn], cnt[maxn], ans, zar[maxn];
vector <int> V;

void pre() {
	fac[0] = 1;
	for (int i = 1; i < maxn; i++)
		fac[i] = (fac[i - 1] * i) % mod;
	for (int i = 0; i < maxn; i++)
		dp[i][0] = 1, dp[i][1] = i;

	zar[0] = 1;
	for (int i = 1; i < maxn; i++)
		zar[i] = -zar[i - 1];
	cnt[0] = 1;
	return;
}

int32_t main() {
	pre();
	cin >> n >> k;
	int val = n;
	for (int i = 0; i < k; i++) {
		val--;
		V.push_back(val / k);
	}
	for (int i = 2; i < maxn; i++) {
		for (int j = 2; j <= i; j++) {
			dp[i][j] = (dp[i - 1][j] + dp[i - 2][j - 1]) % mod;
		}
	}
	for (auto x : V) {
		int val = 2;
		while (val--) {
			for (int i = n; i >= 0; i--) {
				for (int j = 1; j <= min(x, i); j++) {
					cnt[i] = (cnt[i] + (cnt[i - j] * dp[x][j]) % mod) % mod;
				}
			}
		}
	}
	for (int i = 0; i <= n; i++) 
		ans = (ans + ((cnt[i] * zar[i] * fac[n - i]) % mod) + mod) % mod;
	cout << ans;
	return 0;
}