Buggy python submission (verdict: Runtime Error):
import sys

for line in sys.stdin:
    A=line.split()
    B=map(int,A)

B=B.sort()

while B[1]%B[0] != 0:
    C=B[0]
    B[0]=B[1]%B[0]
    B[1]=C

print B[0]

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]

Buggy python submission (verdict: Runtime Error):
import sys

for line in sys.stdin:
    A=line.split()
    B=map(int,A)

D=B.sort()
e=1

while e != 0:
    e=B[1]%B[0]
    C=[0]
    B[0]=e
    B[1]=C

print B[0]

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]

Buggy python submission (verdict: Runtime Error):
import sys

for line in sys.stdin:
    A=line.split()
    B=map(int,A)

D=B.sort()
e=1

while e != 0:
    e=D[1]%D[0]
    C=[0]
    D[0]=e
    D[1]=C

print D[0]

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]

Buggy python submission (verdict: Runtime Error):
import sys

for line in sys.stdin:
    A=line.split()
    B=map(int,A)

D=B.sort()
e=1

while e != 0:
    e=D[1]%D[0]
    C=[0]
    D[0]=e
    D[1]=C

print e

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]

Buggy python submission (verdict: Runtime Error):
import sys

for line in sys.stdin:
    A=line.split()
    B=map(int,A)

D=B.sort()
e=1

while e != 0:
    e=D[1]%D[0]
    C=D[0]
    D[0]=e
    D[1]=C

print D[0]

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]

Buggy python submission (verdict: Runtime Error):
import sys


for line in sys.stdin:
    global B
    A=line.split()
    B=map(int,A)

D=B.sort()
e=1

while e != 0:
    e=D[1]%D[0]
    C=D[0]
    D[0]=e
    D[1]=C

print D[0]

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]

Buggy python submission (verdict: Runtime Error):
import sys

B=[]

for line in sys.stdin:
    global B
    A=line.split()
    B=map(int,A)

D=B.sort()
e=1

while e != 0:
    e=D[1]%D[0]
    C=D[0]
    D[0]=e
    D[1]=C

print D[0]

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]

Buggy python submission (verdict: Runtime Error):
import sys

for line in sys.stdin:
    A=line.split()
    B=map(int,A)

    D=B.sort()
    e=1

    while e != 0:
        e=D[1]%D[0]
        C=D[0]
        D[0]=e
        D[1]=C

    print D[0]

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]

Buggy python submission (verdict: Runtime Error):
import sys

for line in sys.stdin:
    A=line.split()
    B=map(int,A)

    e=1

    while e != 0:
        e=B[0]%B[1]
        C=B[1]
        B[1]=e
        B[0]=C

    print B[0]

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]

Buggy python submission (verdict: Runtime Error):
import sys

for line in sys.stdin:
    A=line.split()
    B=map(int,A)
    if B[0]<B[1]:
        p=B[1]
        B[1]=B[0]
        B[0]=p
    e=1

    while e != 0:
        e=B[0]%B[1]
        C=B[1]
        B[1]=e
        B[0]=C

    print B[0]

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]

Buggy python submission (verdict: Runtime Error):
import sys

for line in sys.stdin:
    lineA=line.strip()
    A=lineA.split()
    B=map(int,A)
    if B[0]<B[1]:
        p=B[1]
        B[1]=B[0]
        B[0]=p
    e=1

    while e != 0:
        e=B[0]%B[1]
        C=B[1]
        B[1]=e
        B[0]=C

    print B[0]

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]

Buggy python submission (verdict: Runtime Error):
import sys

for line in sys.stdin:
    A=line.split()
    B=map(int,A)
    if B[0]<B[1]:
        p=B[1]
        B[1]=B[0]
        B[0]=p
    e=1

    while e != 0:
        e=B[0]%B[1]
        C=B[1]
        B[1]=e
        B[0]=C

    print B[0]

Fixed submission:
A=map(int,raw_input().split())
A.sort()

while A[1]%A[0]!=0:
    temp=A[0]
    A[0]=A[1]%A[0]
    A[1]=temp

print A[0]