#include using namespace std; #define all(x) (x).begin(),(x).end() #define int long long const int p=998244353; int po(int a,int b) {if(b==0) return 1; if(b==1) return a; if(b%2==0) {int u=po(a,b/2);return (u*u)%p;} else {int u=po(a,b-1);return (a*u)%p;}} int inv(int x) {return po(x,p-2);} int32_t main() { ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); int n,m;cin>>n>>m; vector divs; for(int i=1;i*i<=m;++i) { if(m%i==0) { divs.push_back(i);divs.push_back(m/i); } } sort(all(divs));divs.erase(unique(all(divs)),divs.end()); vector res(divs.size());fill(all(res),0LL); int cnt[divs.size()]={0}; for(int i=0;i