import Control.Monad
import Data.Maybe (fromJust)
import Data.List

main :: IO ()
main = do
    n <- read <$> getLine :: IO Int
    t <- replicateM n (read <$> getLine) :: IO [Int]
    let a = foldl' lcm 1 t
    print $ a
