mod = 998244353 N = int(input()) M = int(input()) ans = 0 tmp = 1 m = N while m >= M: ans += tmp tmp *= m tmp //= N - m + 1 while tmp > mod : tmp -= mod while ans > mod : ans -= mod m -= 1 print(ans)