#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define inll(x) scanf("%lld",&x) #define outll(x) printf("%lld",x) #define inll2(x,y) scanf("%lld%lld",&x,&y) #define outll2(x,y) printf("%lld%lld",x,y) #define inll3(x,y,z) scanf("%lld%lld%lld",&x,&y,&z) #define outll3(x,y,z) printf("%lld%lld%lld",x,y,z) #define in(x) scanf("%d",&x) #define out(x) printf("%d",x) #define in2(x,y) scanf("%d%d",&x,&y) #define out2(x,y) printf("%d%d",x,y) #define in3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define out3(x,y,z) printf("%d%d%d",x,y,z) #define ll long long #define div 1000000007 using namespace std; ll gcd(ll a, ll b) { if (a == 0) return b; return gcd(b%a, a); } int main(){ ll n; cin>>n; ll a[n-1],b[n]; if(n==1) { ll k; cin>>k; cout<>b[i]; } k=b[0]; for (int i = 0; i < n-1; ++i) { k=gcd(k,b[i+1]); ll smaller; if(b[i]