fun main(arg: Array<String>) {
    val N = nextInt()
    val T = Array(N) { nextLong() }
    val ans = T.reduce { acc, t -> lcm(acc, t)}
    println(ans)
}
fun gcd(a: Long, b: Long): Long = if (b > 0) gcd(b, a % b) else a
fun lcm(a: Long, b: Long): Long = a / gcd(a, b) * b
fun next() = readLine()!!
fun nextInt() = next().toInt()
fun nextLong() = next().toLong()
fun listOfString() = next().split(" ")
fun listOfLong() = listOfString().map { java.lang.Long.parseLong(it) }
