from functools import reduce



#def gcd(a, b):

#    while b:

#        a, b = b, a % b

#    return a



def gcd(m, n):

    r = m % n

    return gcd(n, r) if r else n



def lcm(a, b):

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



N = int(eval(input()))

Ts = []

c = 1

for i in range(N):

    c = lcm(c, int(eval(input())))



print((int(c)))

def gcd(a, b):

    while b:

        a, b = b, a % b

    return a



#def gcd(m, n):

#    r = m % n

#    return gcd(n, r) if r else n



def lcm(a, b):

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



N = int(eval(input()))

Ts = []

c = 1

for i in range(N):

    c = lcm(c, int(eval(input())))



print((int(c)))

from functools import reduce

# def gcd(a, b):
#    while b:
#        a, b = b, a % b
#    return a
def gcd(m, n):
    r = m % n
    return gcd(n, r) if r else n


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


N = int(eval(input()))
Ts = []
c = 1
for i in range(N):
    c = lcm(c, int(eval(input())))
print((int(c)))

def gcd(a, b):
    while b:
        a, b = b, a % b
    return a


# def gcd(m, n):
#    r = m % n
#    return gcd(n, r) if r else n
def lcm(a, b):
    return a * b // gcd(a, b)


N = int(eval(input()))
Ts = []
c = 1
for i in range(N):
    c = lcm(c, int(eval(input())))
print((int(c)))

-from functools import reduce - -# def gcd(a, b): -#    while b: -#        a, b = b, a % b -#    return a -def gcd(m, n): -    r = m % n -    return gcd(n, r) if r else n +def gcd(a, b): +    while b: +        a, b = b, a % b +    return a +# def gcd(m, n): +#    r = m % n +#    return gcd(n, r) if r else n