local function getgcd(x, y)
  while 0 < x do
    x, y = y % x, x
  end
  return y
end

local function getlcm(x, y)
  local gcd = getgcd(x, y)
  return (x // gcd) * y
end

local n = io.read("*n")
local lcm = io.read("*n")
for i = 2, n do
  lcm = getlcm(lcm, io.read("*n"))
end
print(lcm)
