import scala.io.StdIn.{readLine, readInt}

object Main {
  def gcd(x:Long, y:Long):Long = if(y==0) x else gcd(y, x%y)
  def lcm(x:Long, y:Long) = (x/gcd(x,y))*y

  def main(args:Array[String]) = {
    val n = readInt
    val l = readLine.split(" ").map(_.toLong)
    var r = l(0)
    for(i<- 1 until n) {
      r = lcm(r,l(i))
    }
    println(r)
  }
}