import fractions

N = int(eval(input()))

lcm = 1

for i in range(N):

    t = int(eval(input()))

    lcm = lcm * t // fractions.gcd(lcm,t)

print(lcm)

from fractions import gcd

N = int(eval(input()))

ts = [int(eval(input())) for i in range(N)]



lcm = 1

for t in ts:

    lcm = lcm * t // gcd(lcm,t)

print(lcm)
import fractions

N = int(eval(input()))
lcm = 1
for i in range(N):
    t = int(eval(input()))
    lcm = lcm * t // fractions.gcd(lcm, t)
print(lcm)

from fractions import gcd

N = int(eval(input()))
ts = [int(eval(input())) for i in range(N)]
lcm = 1
for t in ts:
    lcm = lcm * t // gcd(lcm, t)
print(lcm)

-import fractions +from fractions import gcd +ts = [int(eval(input())) for i in range(N)] -for i in range(N): -    t = int(eval(input())) -    lcm = lcm * t // fractions.gcd(lcm, t) +for t in ts: +    lcm = lcm * t // gcd(lcm, t)