import java.util.*

fun main(args:Array<String>){
    val n = readLine()!!.toInt()
    val t = LongArray(n)
    for(i in 0 until n){
        val k = readLine()!!.toLong()
        t[i] = k
    }
    var ans = t[0]
    for(i in 0 until n){
        ans = lcm(ans, t[i])
    }
    println(ans)
}

fun gcd(a : Long, b : Long) : Long{
    if(b == 0L) return a
    return gcd(b, a % b)
}

fun lcm(a : Long, b : Long) : Long{
    return a / gcd(a, b) * b
}
