open System

let rec gcd a b =
    if b = 0L
    then a
    else gcd b (a % b)

let lcm a b = a / gcd a b * b


let n = stdin.ReadLine() |> int
let t = [| for _ in [1..n] -> stdin.ReadLine() |> int64 |]

printfn "%d" <| Array.fold lcm 1L t
