mod = 998244353 n, k = map(int, input().split()) m = n - k fact = 1 for i in range(1, m + 1): fact = fact * i % mod ans = k * fact % mod print(ans)