import fractions

import functools



def lcm(a,b):

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



n=int(eval(input()))

t=[]

for i in range(n):

	t.append(int(eval(input())))

ans=functools.reduce(lcm,t)

print(ans)
def gcd(a, b):

	return gcd(b, a % b) if b else a



n = int(eval(input()))

ans = 1

for i in range(n):

	x = int(eval(input()))

	ans = ans * x // gcd(ans, x)

print(ans)
import fractions
import functools


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


n = int(eval(input()))
t = []
for i in range(n):
    t.append(int(eval(input())))
ans = functools.reduce(lcm, t)
print(ans)

def gcd(a, b):
    return gcd(b, a % b) if b else a


n = int(eval(input()))
ans = 1
for i in range(n):
    x = int(eval(input()))
    ans = ans * x // gcd(ans, x)
print(ans)

-import fractions -import functools - - -def lcm(a, b): -    return a * b // fractions.gcd(a, b) +def gcd(a, b): +    return gcd(b, a % b) if b else a -t = [] +ans = 1 -    t.append(int(eval(input()))) -ans = functools.reduce(lcm, t) +    x = int(eval(input())) +    ans = ans * x // gcd(ans, x)