gets
puts gets.split(" ").map(&:to_i).reduce(1, :lcm)

# n = gets.to_i
# c = gets.split(" ").map(&:to_i)
#
# def gcd_t(m,n)
#   if n == 0
#     return m
#   else
#     return gcd_t(n, m%n)
#   end
# end
#
# d = 1
# for i in 0..n-1
#   # d = d * c[i] / gcd_t(d, c[i])
#   # d = d * c[i] / d.gcd(c[i])
#   d = d.lcm(c[i])
# end

