import numpy as np
from functools import reduce
_ = input()
print(reduce(np.gcd, map(int,input().split()))) import numpy as np numpy from functools import reduce _ = input() _ input() input print(reduce(np.gcd, map(int,input().split()))) print reduce(np.gcd, map(int,input().split())) reduce np.gcd np gcd map(int,input().split()) map int input().split() ().split () input split _ = input() input() _
import numpy as np
from functools import reduce
_ = input()
print(reduce(np.gcd, map(int,input().split())))