from functools import reduce

from fractions import gcd





def lcm(a, b):

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





N = int(eval(input()))

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





ans = reduce(lcm, lst_T)





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

    if b == 0:

        return a

    return gcd(b, a%b)





def lcm(a, b):

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





N = int(eval(input()))

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





ans = 1

for t in lst_T:

    ans = lcm(ans, t)





print(ans)
from functools import reduce
from fractions import gcd


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


N = int(eval(input()))
lst_T = [int(eval(input())) for _ in range(N)]
ans = reduce(lcm, lst_T)
print(ans)

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


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


N = int(eval(input()))
lst_T = [int(eval(input())) for _ in range(N)]
ans = 1
for t in lst_T:
    ans = lcm(ans, t)
print(ans)

-from functools import reduce -from fractions import gcd +def gcd(a, b): +    if b == 0: +        return a +    return gcd(b, a % b) -ans = reduce(lcm, lst_T) +ans = 1 +for t in lst_T: +    ans = lcm(ans, t)