import fractions



N = int(input())

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



ans = 1



for i in T:

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



print(ans)
def gcd(x, y):

    if y == 0:

        return x

    else:

        return gcd(y, x%y)





def lcm(x,y):

    return x/gcd(x, y)*y





N = int(input())

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

 

ans = 1

 

for i in T:

    ans = lcm(ans, i)

 

print(ans)

import fractions

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

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


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


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

-import fractions +def gcd(x, y): +    if y == 0: +        return x +    else: +        return gcd(y, x % y) + + +def lcm(x, y): +    return x / gcd(x, y) * y + -    ans = ans / fractions.gcd(ans, i) * i +    ans = lcm(ans, i)