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)(BigInt(sc.nextInt))
        println(ls.reduceLeft((a,b) => lcm(a, b)))
    }
    def lcm(a: BigInt, b: BigInt): BigInt = a * b / gcd(a, b)
    def gcd(a: BigInt, b: BigInt): BigInt = if (b == 0) a.abs else gcd(b, a%b)
}
