import scala.io.StdIn

import scala.annotation.tailrec

object Main extends App {

  @tailrec
  def gdc(x:Long, y:Long):Long = {
    if(y == 0) x
    else gdc(y, x % y)
  }

  def lcm(ex:Long, ey:Long):Long = {
    val x = if(ex >= ey) ex else ey
    val y = if(ex >= ey) ey else ex
    x * (y / gdc(x, y))
  }

  val n = StdIn.readInt
  val ans = Iterator.continually(StdIn.readLine.toLong)
    .take(n)
    ./:(0L,1L)((acc,e) => {
      val a:Long = lcm(acc._2, e)
      (a,e)
    })._1

  println(ans)
}