#include using namespace std; using ll = long long; int main(){ ll c,m; cin>>c>>m; unordered_set p; for(int i=0;i>x; p.insert(x); } for(auto x : p){ if (c%x == 0 && p.find(c/x) != p.end()) { ll y = c/x; if (y