local function gcd(a,b)
    if b>0 then
        return gcd(b,a%b)
    else
        return a
    end
end

local function lcm(a,b)
    return (a//gcd(a,b))*b
end

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