n = int(input())
import fractions
A = list(map(int,input().split()))
g = 0
for i in range(n):
    g = fractions.gcd(g,A[i])
print(g) n = int(input()) n int(input()) int input() input import fractions fractions A = list(map(int,input().split())) A list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split g = 0 g 0 for i in range(n):
    g = fractions.gcd(g,A[i]) i range(n) range n g = fractions.gcd(g,A[i]) g fractions.gcd(g,A[i]) fractions.gcd fractions gcd g A[i] A i print(g) print g A = list(map(int,input().split())) list(map(int,input().split())) A g = fractions.gcd(g,A[i]) fractions.gcd(g,A[i]) g g = 0 0 g n = int(input()) int(input()) n
n = int(input())
import fractions
A = list(map(int,input().split()))
g = 0
for i in range(n):
    g = fractions.gcd(g,A[i])
print(g)
