#include #define rep(i,n) for(int i=0;i pp; const int INF = 1e9; const int MOD = 1000000007; int main() { int n; ll p; cin >> n >> p; if(n ==1) { cout << 0 << endl; return 0; } vector dp(n); vector cumsum_dp(n); dp[0] = 0;dp[1] = 1; cumsum_dp[0] = 0,cumsum_dp[1] = 1; ll ans = 1; for(int i=2;i