object Main {
    def main(args: Array[String]) : Unit = {
        val sc = new java.util.Scanner(System.in)
        val n  = sc.nextInt
        val ls = List.fill(n)(sc.nextLong)
        println(ls.reduceLeft((a,b) => lcm(a, b)))
    }
    def lcm(a: Long, b: Long): Long = a / gcd(a, b) * b
    def gcd(a: Long, b: Long): Long = if (b == 0) a.abs else gcd(b, a%b)
}
