import java.math.BigDecimal

fun gcd(a: BigDecimal, b: BigDecimal): BigDecimal {
    var x = a
    var y = b
    while (true) {
        if (y.compareTo(x) < 0) {
            val z = x
            x = y
            y = z
        }
        if (x.signum() == 0) break
        y %= x
    }
    return y
}

fun lcm(a: BigDecimal, b: BigDecimal) = a * b / gcd(a, b)

fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    var tlcm = BigDecimal(readLine())
    repeat(n - 1) {
        val t = BigDecimal(readLine())
        tlcm = lcm(t, tlcm)
    }
    println(tlcm.toPlainString())
}
