from fractions import gcd

from functools import reduce



n = int(eval(input()))

t = list(int(eval(input())) for _ in range(n))



def lcm_base(x, y):

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



def lcm_list(numbers):

    return reduce(lcm_base, numbers, 1)



print((lcm_list(t)))
import math

n = int(eval(input()))

t = [int(eval(input())) for _ in range(n)]

if n == 1:

    print((t[0]))

    exit()

a = t[0]*t[1]//math.gcd(t[0],t[1])

for i in range(2, n):

    a = t[i]*a//math.gcd(t[i],a)

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

n = int(eval(input()))
t = list(int(eval(input())) for _ in range(n))


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


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


print((lcm_list(t)))

import math

n = int(eval(input()))
t = [int(eval(input())) for _ in range(n)]
if n == 1:
    print((t[0]))
    exit()
a = t[0] * t[1] // math.gcd(t[0], t[1])
for i in range(2, n):
    a = t[i] * a // math.gcd(t[i], a)
print(a)

-from fractions import gcd -from functools import reduce +import math -t = list(int(eval(input())) for _ in range(n)) - - -def lcm_base(x, y): -    return (x * y) // gcd(x, y) - - -def lcm_list(numbers): -    return reduce(lcm_base, numbers, 1) - - -print((lcm_list(t))) +t = [int(eval(input())) for _ in range(n)] +if n == 1: +    print((t[0])) +    exit() +a = t[0] * t[1] // math.gcd(t[0], t[1]) +for i in range(2, n): +    a = t[i] * a // math.gcd(t[i], a) +print(a)