#include typedef long long ll; ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;} int main() { int n; scanf("%d", &n); long long arr[n]; for (int i=0; i