#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; long long mod = 998244353; long long Fibonacci(long long A) { vectorB(A + 1); B[0] = 1; B[1] = 1; for (int i = 2; i <= A; i++) { B[i] = B[i - 1] + B[i - 2]; B[i] %= mod; } return B[A]; } #define int long long signed main() { int N, M; cin >> N >> M; if (N == 1) { cout << 1 << endl; return 0; } vectorA(M + 1,1); for (int i = N; i <= M; i++) { A[i] = A[i - N] + A[i - 1]; } cout << A[M] << endl; }