import math

from functools import reduce



def lcm_base(x, y):

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



def lcm(*numbers):

  return reduce(lcm_base, numbers, 1)



def lcm_list(umbers):

  return reduce(lcm_base, numbers, 1)



n = int(eval(input()))

t = []

for i in range(n):

  t_ = int(eval(input()))

  t.append(t_)

  

print((lcm(*t)))
import math

n=int(eval(input()))

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

res=t[0]

for i in range(1,n):

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

print(res)
import math
from functools import reduce


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


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


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


n = int(eval(input()))
t = []
for i in range(n):
    t_ = int(eval(input()))
    t.append(t_)
print((lcm(*t)))

import math

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

-from functools import reduce - - -def lcm_base(x, y): -    return (x * y) // math.gcd(x, y) - - -def lcm(*numbers): -    return reduce(lcm_base, numbers, 1) - - -def lcm_list(umbers): -    return reduce(lcm_base, numbers, 1) - -t = [] -for i in range(n): -    t_ = int(eval(input())) -    t.append(t_) -print((lcm(*t))) +t = [int(eval(input())) for i in range(n)] +res = t[0] +for i in range(1, n): +    res = res * t[i] // math.gcd(res, t[i]) +print(res)