#include #include #include #include #include using namespace std; int main(){ int N; cin >> N; vector x(N); vector y(N); for(int i=0;i> x[i]; } sort(x.begin(),x.end()); for(int i=0;ix[i] &&(x[j] % x[i] )==0){ if(y[j]