targ = [int(n) for n in input().split(' ')]
big,small = max(targ),min(targ)
while big % small != 0:
    disp = small
    small = big % small
    big = disp
print(small) int(n) for n in input().split(' ') for n in input().split(' ') n input().split(' ') ().split () input split ' ' for n in input().split(' ') int(n) int n targ = [int(n) for n in input().split(' ')] targ [int(n) for n in input().split(' ')] big,small = max(targ),min(targ) big max(targ) max targ small min(targ) min targ while big % small != 0:
    disp = small
    small = big % small
    big = disp big % small != 0 big % small big small 0 disp = small disp small small = big % small small big % small big small big = disp big disp print(small) print small targ = [int(n) for n in input().split(' ')] [int(n) for n in input().split(' ')] targ small = max(targ),min(targ) min(targ) small disp = small small disp small = big % small big % small small big,small = max(targ),min(targ) max(targ) big big = disp disp big
targ = [int(n) for n in input().split(' ')]
big,small = max(targ),min(targ)
while big % small != 0:
    disp = small
    small = big % small
    big = disp
print(small)