#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a void drop(const T &x){cout<>n; vector as(n); for(Int i=0;i>as[i]; vector bs; for(Int a:as) if(a>0) bs.emplace_back(a); if(bs.empty()) drop(-1); Int g=bs[0]; for(Int b:bs) g=__gcd(g,b); cout<