module Main where
    import Data.List
    import Control.Monad
    
    main = do
        n <- getLine
        lines<-getLines (read n ::Int)
        let clocks = map read' lines
        let answer = foldr getLCM 1 clocks
        putStrLn $ show answer

    read' s = read s ::Integer

    getLines n = do
        lines <- (replicateM n getLine)
        return lines

    getGCD::Integer->Integer->Integer
    getGCD m n 
        | m < n = (getGCD n m)
        | n == 0 = m
        | otherwise = getGCD (mod m n) n

    getLCM::Integer->Integer->Integer
    getLCM m n = div (m * n) (getGCD m n)
