Find the least common multiple (LCM) of given n integers.
n a1 a2 ... an
n is given in the first line. Then, n integers are given in the second line.
Print the least common multiple of the given integers in a line.
3 3 4 6
12
4 1 2 3 5
30