from fractions import gcd

from functools import reduce

n=int(eval(input()))

g=1

for i in range(n):

  t=int(eval(input()))

  g=g*t//gcd(g,t)

print(g)

from math import gcd

n=int(eval(input()))

a=int(eval(input()))

for _ in range(n-1):

  i=int(eval(input()))

  a=a*i//gcd(a,i)

print(a)
from fractions import gcd
from functools import reduce

n = int(eval(input()))
g = 1
for i in range(n):
    t = int(eval(input()))
    g = g * t // gcd(g, t)
print(g)

from math import gcd

n = int(eval(input()))
a = int(eval(input()))
for _ in range(n - 1):
    i = int(eval(input()))
    a = a * i // gcd(a, i)
print(a)

-from fractions import gcd -from functools import reduce +from math import gcd -g = 1 -for i in range(n): -    t = int(eval(input())) -    g = g * t // gcd(g, t) -print(g) +a = int(eval(input())) +for _ in range(n - 1): +    i = int(eval(input())) +    a = a * i // gcd(a, i) +print(a)