object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt
  val ls = List.fill(n)(sc.nextLong)

  val res = ls.reduceLeft { (a, b) => (a / gcd(a, b)) * b }
  println(res)

  def gcd(a: Long, b: Long): Long = if (b == 0) a else gcd(b, a % b)
}