module Main where

import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    n <- readLn
    ts <- replicateM n readLn :: IO [Int]
    let ans = foldr lcm 1 ts
    print ans