from fractions import gcd
print(gcd(*list(map(int, input().split(" "))))) from fractions import gcd print(gcd(*list(map(int, input().split(" "))))) print gcd(*list(map(int, input().split(" ")))) gcd *list(map(int, input().split(" "))) list(map(int, input().split(" "))) list map(int, input().split(" ")) map int input().split(" ") ().split () input split " "
from fractions import gcd
print(gcd(*list(map(int, input().split(" ")))))