#include #include #include #include #include #include #include #include #include using namespace std; #pragma warning (disable: 4996) long long mod = 998244353; long long N, M; long long dp[1000009]; int main() { cin >> N >> M; dp[0] = 1; for (int i = 1; i <= M; i++) { dp[i] = dp[i - 1]; if (i - N >= 0) dp[i] += dp[i - N]; dp[i] %= mod; } cout << dp[M] << endl; return 0; }