fun main(args: Array<String>) {
    val N = readLine()!!.toInt()
    val T = Array(N) { readLine()!!.toLong() }

    println(T.fold(1L, ::lcm))
}

tailrec fun gcd(x: Long, y: Long): Long = if (y == 0L) x else gcd(y, x % y)

/**
 * Calculate the least common multiple of `x` and `y`
 */
fun lcm(x: Long, y: Long): Long = x / gcd(x, y) * y
