//最大公約数
tailrec fun gcd(a:Long, b:Long):Long = if(b==0L) a else gcd(b,a%b)

//最小公倍数
fun lcm(a:Long, b:Long):Long = a/gcd(a,b)*b

fun main(args: Array<String>) {
    val n=readLine()!!.toInt()
    val t=(1..n).map{ readLine()!!.toLong() }
    val v=t.fold(1L) { a, b -> lcm(a,b) }
    println(v)
}