#include using namespace std; using ll=long long; #include #include using namespace atcoder; using mint=modint998244353; using namespace std; using namespace atcoder; using mint = modint998244353; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll N,K; cin>>N>>K; vector C(1e6+1,0); map M; mint pr=1; for(int i=0;i>A; C[A]++; ll L=A; for(ll x=2;x*x<=L;x++){ ll e=0; while(L%x==0){ e++; L/=x; } if(e>0)M[x]=max(M[x],e); } if(L!=1)M[L]=max(M[L],1ll); } if(K==1){ for(auto [m,e]:M){ pr*=mint(m).pow(e); } cout<cnt)an=a; } cout<