#My Python Lectures: https://cutt.ly/python-full-playlist
#Codechef Problem Solution Video: https://cutt.ly/codeChefContestProblemSolution
import math
num = [2,3,4,5,6,7]
res = num[0]
for i in range(1, len(num), 1):
res = math.gcd(res, num[i])
print(res)