import math

from functools import reduce



def lcm_base(x, y):

    return (x * y) // math.gcd(x, y)



def lcm_list(numbers):

    return reduce(lcm_base, numbers, 1)



n = int(eval(input()))



l = []



for i in range(n):

    t = int(eval(input()))

    l.append(t)



print((lcm_list(l)))

def gcd(m, n):

    if m < n:

        m, n = n, m



    while True:

        r = m % n

        if r == 0:

            return n

        else:

            m, n = n, r



def lcm(m, n):

    return m*n // gcd(m, n)



n = int(eval(input()))

l = []



ans = 1



for i in range(n):

    t = int(eval(input()))

    ans = lcm(ans, t)



print(ans)

import math
from functools import reduce


def lcm_base(x, y):
    return (x * y) // math.gcd(x, y)


def lcm_list(numbers):
    return reduce(lcm_base, numbers, 1)


n = int(eval(input()))
l = []
for i in range(n):
    t = int(eval(input()))
    l.append(t)
print((lcm_list(l)))

def gcd(m, n):
    if m < n:
        m, n = n, m
    while True:
        r = m % n
        if r == 0:
            return n
        else:
            m, n = n, r


def lcm(m, n):
    return m * n // gcd(m, n)


n = int(eval(input()))
l = []
ans = 1
for i in range(n):
    t = int(eval(input()))
    ans = lcm(ans, t)
print(ans)

-import math -from functools import reduce +def gcd(m, n): +    if m < n: +        m, n = n, m +    while True: +        r = m % n +        if r == 0: +            return n +        else: +            m, n = n, r -def lcm_base(x, y): -    return (x * y) // math.gcd(x, y) - - -def lcm_list(numbers): -    return reduce(lcm_base, numbers, 1) +def lcm(m, n): +    return m * n // gcd(m, n) +ans = 1 -    l.append(t) -print((lcm_list(l))) +    ans = lcm(ans, t) +print(ans)