import fractions

from functools import reduce



def lcm_base(x, y):

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



def lcm(*numbers):

    return reduce(lcm_base, numbers, 1)



def lcm_list(numbers):

    return reduce(lcm_base, numbers, 1)



n=int(eval(input()))

print((lcm_list([int(eval(input())) for _ in range(n)])))
from fractions import gcd

from functools import reduce

n=int(eval(input()))

g=1

for i in range(n):

  t=int(eval(input()))

  g=g*t//gcd(g,t)

print(g)

import fractions
from functools import reduce


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


def lcm(*numbers):
    return reduce(lcm_base, numbers, 1)


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


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

from fractions import gcd
from functools import reduce

n = int(eval(input()))
g = 1
for i in range(n):
    t = int(eval(input()))
    g = g * t // gcd(g, t)
print(g)

-import fractions +from fractions import gcd - -def lcm_base(x, y): -    return (x * y) // fractions.gcd(x, y) - - -def lcm(*numbers): -    return reduce(lcm_base, numbers, 1) - - -def lcm_list(numbers): -    return reduce(lcm_base, numbers, 1) - - -print((lcm_list([int(eval(input())) for _ in range(n)]))) +g = 1 +for i in range(n): +    t = int(eval(input())) +    g = g * t // gcd(g, t) +print(g)