#include using namespace std; #define ALL(x) x.begin(),x.end() #define rep(i,n) for(int i=0;i<(n);i++) #define debug(v) cout<<#v<<":";for(auto x:v){cout<bool chmax(T &a,const T &b){if(abool chmin(T &a,const T &b){if(b PrimeFactor(ll n){ map ret; for(ll i=2;i*i<=n;i++){ while(n%i==0){ ret[i]++; n/=i; } } if(n!=1) ret[n]=1; return ret; } signed main(){ cin.tie(0); ios::sync_with_stdio(0); ll n,k;cin>>n>>k; auto pfn=PrimeFactor(n); ll ans,cnt=0; for(ll i=1;i=k){ ll x=1; for(auto p:mp) x*=(p.second+1ll); if(chmax(cnt,x)) ans=i; } } cout<