from fractions import gcd



N = int(eval(input()))

T = []



for i in range(N):

    T.append(int(eval(input())))



Ans = T[0]

for i in range(1,N):

    Ans = Ans*T[i]//gcd(Ans,T[i])



print(Ans)
def gcd(a,b):

    if b==0:

        return a

    else:

        return gcd(b,a%b)



N = int(eval(input()))

T = [int(eval(input())) for _ in range(N)]



Ans = T[0]

for i in range(1,N):

    Ans //= gcd(Ans,T[i])

    Ans *= T[i]



print(Ans)
from fractions import gcd

N = int(eval(input()))
T = []
for i in range(N):
    T.append(int(eval(input())))
Ans = T[0]
for i in range(1, N):
    Ans = Ans * T[i] // gcd(Ans, T[i])
print(Ans)

def gcd(a, b):
    if b == 0:
        return a
    else:
        return gcd(b, a % b)


N = int(eval(input()))
T = [int(eval(input())) for _ in range(N)]
Ans = T[0]
for i in range(1, N):
    Ans //= gcd(Ans, T[i])
    Ans *= T[i]
print(Ans)

-from fractions import gcd +def gcd(a, b): +    if b == 0: +        return a +    else: +        return gcd(b, a % b) + -T = [] -for i in range(N): -    T.append(int(eval(input()))) +T = [int(eval(input())) for _ in range(N)] -    Ans = Ans * T[i] // gcd(Ans, T[i]) +    Ans //= gcd(Ans, T[i]) +    Ans *= T[i]