import fractions

N = int(eval(input()))

ans = int(eval(input()))

for i in range(1, N):

  b = int(eval(input()))

  ans = ans*b//fractions.gcd(ans, b)

print(ans)
import math

N = int(eval(input()))

ans = 1

for i in range(N):

  a = int(eval(input()))

  ans = ans*a//math.gcd(ans,a)

print(ans)
import fractions

N = int(eval(input()))
ans = int(eval(input()))
for i in range(1, N):
    b = int(eval(input()))
    ans = ans * b // fractions.gcd(ans, b)
print(ans)

import math

N = int(eval(input()))
ans = 1
for i in range(N):
    a = int(eval(input()))
    ans = ans * a // math.gcd(ans, a)
print(ans)

-import fractions +import math -ans = int(eval(input())) -for i in range(1, N): -    b = int(eval(input())) -    ans = ans * b // fractions.gcd(ans, b) +ans = 1 +for i in range(N): +    a = int(eval(input())) +    ans = ans * a // math.gcd(ans, a)