from fractions import gcd



n=int(eval(input()))

t=[int(eval(input())) for i in range(n)]



ans=1

for i in range(n):

  ans=ans*t[i]//gcd(ans,t[i])

print(ans)
from math import gcd



n=int(eval(input()))



lcm=0

for i in range(n):

  t=int(eval(input()))

  if lcm==0:

    lcm=t

  else:

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



print(lcm)
from fractions import gcd

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

from math import gcd

n = int(eval(input()))
lcm = 0
for i in range(n):
    t = int(eval(input()))
    if lcm == 0:
        lcm = t
    else:
        lcm = (t * lcm) // gcd(t, lcm)
print(lcm)

-from fractions import gcd +from math import gcd -t = [int(eval(input())) for i in range(n)] -ans = 1 +lcm = 0 -    ans = ans * t[i] // gcd(ans, t[i]) -print(ans) +    t = int(eval(input())) +    if lcm == 0: +        lcm = t +    else: +        lcm = (t * lcm) // gcd(t, lcm) +print(lcm)