Buggy python submission (verdict: Runtime Error):
# coding: utf-8

import math
import sys
input = sys.stdin.readline

N = int(input())
A = list(map(int, input().split()))

first_gcd = A[0]
for i in range(len(A)):
    first_gcd = math.gcd(first_gcd, A[i])

print(first_gcd)



Fixed submission:
# coding: utf-8

import sys
input = sys.stdin.readline

def gcd(a, b):
    if a < b:
        a, b = b, a
    if b == 0:
        return a
    c = a % b
    return gcd(b, c)

N = int(input())
A = list(map(int, input().split()))

first_gcd = A[0]
for i in range(len(A)):
    first_gcd = gcd(first_gcd, A[i])

print(first_gcd)

Buggy python submission (verdict: Runtime Error):
# coding: utf-8

import sys
input = sys.stdin.readline

def gcd(a, b):
    if a < b:
        a, b = b, a
    if b == 0:
        return a
    c = a % b
    return gcd(b, c)

def gccd(num):
    if len(num) == 1:
        return num[0]
    else:
        return gcd(gccd(num[0:1]), gccd(num[1:]))

N = int(input())
A = list(map(int, input().split()))

print(gccd(A))



Fixed submission:
# coding: utf-8

import sys
input = sys.stdin.readline

def gcd(a, b):
    if a < b:
        a, b = b, a
    if b == 0:
        return a
    c = a % b
    return gcd(b, c)

N = int(input())
A = list(map(int, input().split()))

first_gcd = A[0]
for i in range(len(A)):
    first_gcd = gcd(first_gcd, A[i])

print(first_gcd)

Buggy python submission (verdict: Runtime Error):
# coding: utf-8

import sys
input = sys.stdin.readline

def gcd(a, b):
    if a < b:
        a, b = b, a
    if b == 0:
        return a
    c = a % b
    return gcd(b, c)

def gccd(num):
    if len(num) == 1:
        return num[0]
    else:
        return gcd(gccd(num[0:1]), gccd(num[1:]))

N = int(input())
A = list(map(int, input().split()))

print(gccd(A))



Fixed submission:
# coding: utf-8

import sys
input = sys.stdin.readline

def gcd(a, b):
    if a < b:
        a, b = b, a
    if b == 0:
        return a
    c = a % b
    return gcd(b, c)

N = int(input())
A = list(map(int, input().split()))

first_gcd = A[0]
for i in range(len(A)):
    first_gcd = gcd(first_gcd, A[i])

print(first_gcd)

Buggy python submission (verdict: Runtime Error):
# coding: utf-8

import math
import sys
input = sys.stdin.readline

def gccd(num):
    if len(num) == 1:
        return num[0]
    else:
        return math.gcd(gccd(num[0:1]), gccd(num[1:]))

N = int(input())
A = list(map(int, input().split()))

print(gccd(A))



Fixed submission:
# coding: utf-8

import sys
input = sys.stdin.readline

def gcd(a, b):
    if a < b:
        a, b = b, a
    if b == 0:
        return a
    c = a % b
    return gcd(b, c)

N = int(input())
A = list(map(int, input().split()))

first_gcd = A[0]
for i in range(len(A)):
    first_gcd = gcd(first_gcd, A[i])

print(first_gcd)

Buggy python submission (verdict: Runtime Error):
# coding: utf-8

import math
import sys
input = sys.stdin.readline

def gcd(num):
    if len(num) == 1:
        return num[0]
    else:
        return math.gcd(gcd(num[0:1]), gcd(num[1:]))

N = int(input())
A = list(map(int, input().split()))

print(gcd(A))



Fixed submission:
# coding: utf-8

import sys
input = sys.stdin.readline

def gcd(a, b):
    if a < b:
        a, b = b, a
    if b == 0:
        return a
    c = a % b
    return gcd(b, c)

N = int(input())
A = list(map(int, input().split()))

first_gcd = A[0]
for i in range(len(A)):
    first_gcd = gcd(first_gcd, A[i])

print(first_gcd)

Buggy python submission (verdict: Runtime Error):
# coding: utf-8

import math
import sys
input = sys.stdin.readline

N = int(input())
A = list(map(int, input().split()))

def gcd(num):
    if len(num) == 1:
        return num[0]
    else:
        return math.gcd(gcd(num[0:1]), gcd(num[1:]))

print(gcd(A))



Fixed submission:
# coding: utf-8

import sys
input = sys.stdin.readline

def gcd(a, b):
    if a < b:
        a, b = b, a
    if b == 0:
        return a
    c = a % b
    return gcd(b, c)

N = int(input())
A = list(map(int, input().split()))

first_gcd = A[0]
for i in range(len(A)):
    first_gcd = gcd(first_gcd, A[i])

print(first_gcd)

Buggy python submission (verdict: Runtime Error):
# coding: utf-8

import sys
input = sys.stdin.readline

import math

N = int(input())
A = list(map(int, input().split()))

def gcd(num):
    if len(num) == 1:
        return num[0]
    else:
        return math.gcd(gcd(num[0:1]), gcd(num[1:]))

print(gcd(A))



Fixed submission:
# coding: utf-8

import sys
input = sys.stdin.readline

def gcd(a, b):
    if a < b:
        a, b = b, a
    if b == 0:
        return a
    c = a % b
    return gcd(b, c)

N = int(input())
A = list(map(int, input().split()))

first_gcd = A[0]
for i in range(len(A)):
    first_gcd = gcd(first_gcd, A[i])

print(first_gcd)

Buggy python submission (verdict: Runtime Error):
# coding: utf-8

import sys
input = sys.stdin.readline

import math
from functools import reduce

N = int(input())
A = list(map(int, input().split()))

print(reduce(math.gcd, A))



Fixed submission:
# coding: utf-8

import sys
input = sys.stdin.readline

def gcd(a, b):
    if a < b:
        a, b = b, a
    if b == 0:
        return a
    c = a % b
    return gcd(b, c)

N = int(input())
A = list(map(int, input().split()))

first_gcd = A[0]
for i in range(len(A)):
    first_gcd = gcd(first_gcd, A[i])

print(first_gcd)