N = int(input())
A = list(map(int, input().split()))

import math

g = math.gcd(A[0], A[0])
for a in A:
    g = math.gcd(g, a)
print(g) N = int(input()) N int(input()) int input() input A = list(map(int, input().split())) A list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split import math math g = math.gcd(A[0], A[0]) g math.gcd(A[0], A[0]) math.gcd math gcd A[0] A 0 A[0] A 0 for a in A:
    g = math.gcd(g, a) a A g = math.gcd(g, a) g math.gcd(g, a) math.gcd math gcd g a print(g) print g g = math.gcd(A[0], A[0]) math.gcd(A[0], A[0]) g A = list(map(int, input().split())) list(map(int, input().split())) A N = int(input()) int(input()) N g = math.gcd(g, a) math.gcd(g, a) g
N = int(input())
A = list(map(int, input().split()))

import math

g = math.gcd(A[0], A[0])
for a in A:
    g = math.gcd(g, a)
print(g)
