#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x>N>>K; for(x=2;x<=K;x++) { for(y=1;y*x<=N;y++) { if(N%y==0 && N/y>=x) ma=max(ma,y); } } cout<