#include using namespace std; const int64_t MOD = 998244353; void add(int64_t& a, int64_t b){ a = (a+b) % MOD; } void mul(int64_t& a, int64_t b){ a = a*b % MOD; } int main(){ int N, M; cin >> N >> M; vector dp(M+1); dp[0] = 1; for(int i=0; i 1 && i+N <= M) add(dp[i+N], dp[i]); } cout << dp[M] << endl; return 0; }