from functools import reduce

from fractions import gcd





def lcm(x, y):

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





N = int(eval(input()))

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

print((reduce(lcm, T, 1)))

def lcm(x, y):

    import fractions

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





N, ans = int(eval(input())), 1

for _ in range(N):

    ans = lcm(ans, int(eval(input())))

print(ans)

from functools import reduce
from fractions import gcd


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


N = int(eval(input()))
T = [int(eval(input())) for _ in range(N)]
print((reduce(lcm, T, 1)))

def lcm(x, y):
    import fractions

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


N, ans = int(eval(input())), 1
for _ in range(N):
    ans = lcm(ans, int(eval(input())))
print(ans)

-from functools import reduce -from fractions import gcd +def lcm(x, y): +    import fractions + +    return (x * y) // fractions.gcd(x, y) -def lcm(x, y): -    return (x * y) // gcd(x, y) - - -N = int(eval(input())) -T = [int(eval(input())) for _ in range(N)] -print((reduce(lcm, T, 1))) +N, ans = int(eval(input())), 1 +for _ in range(N): +    ans = lcm(ans, int(eval(input()))) +print(ans)