import fractions



def lcm(a, b):

    return a / fractions.gcd(a, b) * b





N = int(input())

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



ans = 1

for i in T:

    ans = lcm(ans, i)



print(ans)

def gcd(x, y):

    return x if y == 0 else gcd(y, x % y)





def lcm(x, y):

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





n = int(eval(input()))

ans = 1

for i in range(n):

    t = int(eval(input()))

    ans = lcm(ans, t)



print(ans)
import fractions


def lcm(a, b):
    return a / fractions.gcd(a, b) * b


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

def gcd(x, y):
    return x if y == 0 else gcd(y, x % y)


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


n = int(eval(input()))
ans = 1
for i in range(n):
    t = int(eval(input()))
    ans = lcm(ans, t)
print(ans)

-import fractions +def gcd(x, y): +    return x if y == 0 else gcd(y, x % y) -def lcm(a, b): -    return a / fractions.gcd(a, b) * b +def lcm(x, y): +    return x // gcd(x, y) * y -N = int(input()) -T = [int(input()) for _ in range(N)] +n = int(eval(input())) -for i in T: -    ans = lcm(ans, i) +for i in range(n): +    t = int(eval(input())) +    ans = lcm(ans, t)