#include using namespace std; const int mod=1e9+7; typedef long long ll; const int nmax=3; ll fac[nmax],finv[nmax],inv[nmax]; void COMinit(){ fac[0]=fac[1]=1; finv[0]=finv[1]=1; inv[1]=1; for(int i=2;i> n >> p; ll sum=0; vector a(n); a[0]=0; a[1]=1; for(int i=2;i