# coding: utf-8

try:

    from fractions import gcd

except:

    from math import gcd

N = int(eval(input()))

T = []

for i in range(N):

    t = int(eval(input()))

    T.append(t)

ans = T[0]

for i in range(1, N):

    ans = (ans * T[i]) // gcd(ans, T[i])

print(ans)
# coding: utf-8

from fractions import gcd

N = int(eval(input()))

def lcm(a, b):

    return a * b // gcd(a, b)

ans = 1

for i in range(N):

    t = int(eval(input()))

    ans = lcm(ans, t)

print(ans)
# coding: utf-8
try:
    from fractions import gcd
except:
    from math import gcd
N = int(eval(input()))
T = []
for i in range(N):
    t = int(eval(input()))
    T.append(t)
ans = T[0]
for i in range(1, N):
    ans = (ans * T[i]) // gcd(ans, T[i])
print(ans)

# coding: utf-8
from fractions import gcd

N = int(eval(input()))


def lcm(a, b):
    return a * b // gcd(a, b)


ans = 1
for i in range(N):
    t = int(eval(input()))
    ans = lcm(ans, t)
print(ans)

-try: -    from fractions import gcd -except: -    from math import gcd +from fractions import gcd + -T = [] + + +def lcm(a, b): +    return a * b // gcd(a, b) + + +ans = 1 -    T.append(t) -ans = T[0] -for i in range(1, N): -    ans = (ans * T[i]) // gcd(ans, T[i]) +    ans = lcm(ans, t)