n = io.read('*n')

ans = 1

gcd = function (a, b) if b == 0 then return a else return gcd(b, a % b) end end
lcm = function (a, b) return a // gcd(a, b) * b end

for i = 1, n do ans = lcm(ans, io.read('*n')) end

print(ans)
