fun main(args : Array<String>) {
    val n = readLine()!!.toInt()

    var lcm = 1L

    repeat(n) {
        val t = readLine()!!.toLong()
        lcm = lcm(lcm, t)
    }

    println(lcm)
}

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

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