fun main() {
    fun gcd(c:Long, d:Long):Long{
        if (d>c){return gcd(d,c)}
        if (c%d==0L){return d}
        return gcd(d, c%d)
    }
    val n= readLine()!!.toInt()
    val t= LongArray(n){ readLine()!!.toLong()}
    var ans=1L
    for (i in 0 until n){
        ans=ans/gcd(ans,t[i])*t[i]
//        println(ans)
    }
    println(ans)
}