#include using namepsace std; int main() { cin >> n; int a[n]; int i,j,gcd; for(i=0;i> a[i]; j=1; gcd=a[0]; while(j