Buggy python submission (verdict: Runtime Error):
# 16D8101022L 小林勇希 ID:k_mb python3

def GCD(x,y):
    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x
    if(w != 0):
        GCD(z,w)
    else:
        print(z)

a = int(input())
b = int(input())
GCD(a,b)

"""実行結果

100
55
5



66
77
11

"""



Fixed submission:
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

A = [int(i) for i in input().split()]
print(GCD(A[0],A[1]))

"""実行結果

100 55
5



66 77
11

"""

Buggy python submission (verdict: Runtime Error):
# 16D8101022L 小林勇希 ID:k_mb python3

def GCD(x,y):
    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x
    if(w != 0):
        GCD(z,w)
    else:
        print(z)

a = int(input())
b = int(input())
GCD(a,b)

"""実行結果

100
55
5



66
77
11

"""



Fixed submission:
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

A = [int(i) for i in input().split()]
print(GCD(A[0],A[1]))

"""実行結果

100 55
5



66 77
11

"""

Buggy python submission (verdict: Runtime Error):
# 16D8101022L 小林勇希 ID:k_mb python3

def GCD(x,y):
    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x
    if(w != 0):
        GCD(z,w)
    else:
        print(z)

a = int(input())
b = int(input())
GCD(a,b)

"""実行結果

100
55
5



66
77
11

"""



Fixed submission:
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

A = [int(i) for i in input().split()]
print(GCD(A[0],A[1]))

"""実行結果

100 55
5



66 77
11

"""

Buggy python submission (verdict: Runtime Error):
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    while(1):
        if(w != 0):
            v = w
            w = z%w
            z = v
        else:
            print(z)
            break
"""
    if(w != 0):
        if(x >=y)
        GCD(z,w)
    else:
        print(z)
"""

a = int(input())
b = int(input())
GCD(a,b)


Fixed submission:
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

A = [int(i) for i in input().split()]
print(GCD(A[0],A[1]))

"""実行結果

100 55
5



66 77
11

"""

Buggy python submission (verdict: Runtime Error):
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        GCD(z,w)
    else:
        print(z)

a = int(input())
b = int(input())
GCD(a,b)


Fixed submission:
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

A = [int(i) for i in input().split()]
print(GCD(A[0],A[1]))

"""実行結果

100 55
5



66 77
11

"""

Buggy python submission (verdict: Runtime Error):
# 16D8101022L 小林勇希 ID:k_mb python3

def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        print(z)
"""

    while(1):
        if(w != 0):
            v = w
            w = z%w
            z = v
        else:
            print(z)
            break
"""


a = int(input())
b = int(input())
GCD(a,b)


Fixed submission:
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

A = [int(i) for i in input().split()]
print(GCD(A[0],A[1]))

"""実行結果

100 55
5



66 77
11

"""

Buggy python submission (verdict: Runtime Error):
# 16D8101022L 小林勇希 ID:k_mb python3

def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z
"""

    while(1):
        if(w != 0):
            v = w
            w = z%w
            z = v
        else:
            print(z)
            break
"""


a = int(input())
b = int(input())
print(GCD(a,b))


Fixed submission:
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

A = [int(i) for i in input().split()]
print(GCD(A[0],A[1]))

"""実行結果

100 55
5



66 77
11

"""

Buggy python submission (verdict: Runtime Error):
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

a = int(input())
b = int(input())
print(GCD(a,b))


Fixed submission:
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

A = [int(i) for i in input().split()]
print(GCD(A[0],A[1]))

"""実行結果

100 55
5



66 77
11

"""

Buggy python submission (verdict: Runtime Error):
def gc(x, y):
    while y > 0:
        x %= y
        x, y = y, x
    return x



a = int(input())
b = int(input())
print(gc(a,b))


Fixed submission:
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

A = [int(i) for i in input().split()]
print(GCD(A[0],A[1]))

"""実行結果

100 55
5



66 77
11

"""

Buggy python submission (verdict: Runtime Error):
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

A = [int() for i in input().split()]
print(GCD(A[0],A[1]))

"""実行結果

100 55
5



66 77
11

"""



Fixed submission:
def GCD(x,y):

    if(x >= y):
        z = y
        w = x%y
    else:
        z = x
        w = y%x

    if(not(w == 0)):
        return GCD(z,w)
    else:
        return z

A = [int(i) for i in input().split()]
print(GCD(A[0],A[1]))

"""実行結果

100 55
5



66 77
11

"""