def aux(l)
  l.inject(1){|s,x| s.lcm(x)}
end

def main
  dat=[]
  fh=STDIN
  #fh=File.new("x.txt", "r")
  n = fh.gets.chomp.to_i
  l=fh.gets.chomp.split.map(&:to_i)
  puts aux(l)
end

if $0 == __FILE__ then
  main
end
