import java.math.BigDecimal
import java.util.*

fun main(arr:Array<String>) {
    val numCount = readLine()!!.toInt()
    val numList = (1..numCount).map { readLine()!!.toLong() }.distinct()

    var num = numList[0]
    for(i in numList.indices) {
        num = getKoubai(num, numList[i])
    }
    println(num)
}

fun getKoubai(num1:Long, num2:Long):Long {
    val kouyaku = getKouyaku(num1, num2)
    val ret = (num1/kouyaku)*(num2/kouyaku)*kouyaku
    return ret
}

fun getKouyaku(num1:Long, num2:Long):Long {
    if(num1 % num2 == 0L) {
        return num2
    }
    return getKouyaku(num2, num1%num2)
}
