from math import *



N=int(eval(input()))

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

ans=T[0]

for i in range(1,N):

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

print(ans)

from math import *



def lcm(x,y):

  return (x*y)//gcd(x,y)



N=int(eval(input()))

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

ans=T[0]

for i in range(1,N):

  ans=lcm(ans,T[i])

print(ans)

from math import *

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

from math import *


def lcm(x, y):
    return (x * y) // gcd(x, y)


N = int(eval(input()))
T = [int(eval(input())) for _ in range(N)]
ans = T[0]
for i in range(1, N):
    ans = lcm(ans, T[i])
print(ans)

+ +def lcm(x, y): +    return (x * y) // gcd(x, y) + + -T = list(int(eval(input())) for _ in range(N)) +T = [int(eval(input())) for _ in range(N)] -    ans = ans * T[i] // gcd(ans, T[i]) +    ans = lcm(ans, T[i])