from fractions import gcd

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

 

n = int(eval(input()))

res = 1

for i in range(n):

    t = int(eval(input()))

    res = lcm(res, t)

print(res)
# -*- coding: utf-8 -*-



n = int(eval(input()))



def gcd(a, b):

    if b==0:

        return a

    return gcd(b, a%b)



def lcm(a,b):

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



ans = 1

for _ in range(n):

    t = int(eval(input()))

    ans = lcm(ans, t)



print(ans)

from fractions import gcd


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


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

# -*- coding: utf-8 -*-
n = int(eval(input()))


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


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


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

-from fractions import gcd +# -*- coding: utf-8 -*- +n = int(eval(input())) + + +def gcd(a, b): +    if b == 0: +        return a +    return gcd(b, a % b) -    return a * b // gcd(a, b) +    return a // gcd(a, b) * b -n = int(eval(input())) -res = 1 -for i in range(n): +ans = 1 +for _ in range(n): -    res = lcm(res, t) -print(res) +    ans = lcm(ans, t) +print(ans)