#include using namespace std; const long long MOD = 998244353; int main(){ int N, M; cin >> N >> M; vector dp(M + 1, 0); dp[0] = 1; for (int i = 1; i <= M; i++){ dp[i] = dp[i - 1]; if (i >= N){ dp[i] += dp[i - N]; dp[i] %= MOD; } } cout << dp[M] << endl; }