
fun main(arr:Array<String>) {
    val clockCount = readLine()!!.toInt()
    val clock = (1..clockCount).map { readLine()!!.toLong() }
    val ans = clock.reduce { acc, l -> getKoubai(acc,l) }
    println(ans)

}

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

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