a=input("a = ")
b=input("b = ")
while reste(a,b)~=0
    c=max(b,a-b)
    b=min(b,a-b)
    a=c
end
afficher(b)