fun main(args: Array<String>) {
    val n = readLine()?.toInt() ?: return
    val tList = (0 until n).map {
        readLine()?.toLong()!!
    }

    var result = 1L
    for (t in tList) {
        result = l(result, t)
    }

    println(result)
}

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

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