def gcd(x,y):

    while y>0:

        x,y = y,x%y

    return x

N = int(eval(input()))

T = [int(eval(input())) for _ in range(N)]

ans = T[0]

for i in range(1,N):

    a = gcd(ans,T[i])

    ans = (ans//a)*T[i]

print(ans)
def gcd(x,y):

    while y>0:

        x,y = y,x%y

    return x

N = int(eval(input()))

T = [int(eval(input())) for _ in range(N)]

a = T[0]

for i in range(1,N):

    b = T[i]

    c = gcd(a,b)

    a = (a//c)*b

print(a)
def gcd(x, y):
    while y > 0:
        x, y = y, x % y
    return x


N = int(eval(input()))
T = [int(eval(input())) for _ in range(N)]
ans = T[0]
for i in range(1, N):
    a = gcd(ans, T[i])
    ans = (ans // a) * T[i]
print(ans)

def gcd(x, y):
    while y > 0:
        x, y = y, x % y
    return x


N = int(eval(input()))
T = [int(eval(input())) for _ in range(N)]
a = T[0]
for i in range(1, N):
    b = T[i]
    c = gcd(a, b)
    a = (a // c) * b
print(a)

-ans = T[0] +a = T[0] -    a = gcd(ans, T[i]) -    ans = (ans // a) * T[i] -print(ans) +    b = T[i] +    c = gcd(a, b) +    a = (a // c) * b +print(a)