#include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const ll INF=1LL<<60; typedef pair P; typedef pair PP; const ll MOD=1e9+7; vector

primediv(ll n){ vector

res; for(ll p=2;p*p<=n;p++){ if(n%p==0){ P tmp=make_pair(p,0); while(n%p==0){ tmp.second++; n/=p; } res.push_back(tmp); } } if(n>1){ res.emplace_back(n,1); n/=n; } return res; } int main(){ int N; ll M; cin>>N>>M; auto divM=primediv(M); ll ans=1; for(auto [v,num]:divM){ vector> dp(N+1,vector(num+1,0)); for(int j=0;j<=num;j++){ dp[0][j]=1; } for(int i=1;i