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

    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 =ceiling $ (fromIntegral (m * n)) / (fromIntegral (getGCD m n))

