from functools import reduce

from fractions import gcd



n = int(eval(input()))

arr = [int(eval(input())) for i in range(n)]



def lcm(x, y):

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



def lcmm(l):

  return reduce(lcm, l)



print((lcmm(arr)))

def gcd(a, b):

  while b:

    a, b = b, a%b

  return a



def lcm(a, b):

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



N = int(eval(input()))

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



ans = 1

for t in T:

  ans = lcm(ans, t)

  

print(ans)  



from functools import reduce
from fractions import gcd

n = int(eval(input()))
arr = [int(eval(input())) for i in range(n)]


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


def lcmm(l):
    return reduce(lcm, l)


print((lcmm(arr)))

def gcd(a, b):
    while b:
        a, b = b, a % b
    return a


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


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

-from functools import reduce -from fractions import gcd - -n = int(eval(input())) -arr = [int(eval(input())) for i in range(n)] +def gcd(a, b): +    while b: +        a, b = b, a % b +    return a -def lcm(x, y): -    return (x * y) // gcd(x, y) +def lcm(a, b): +    return a * b // gcd(a, b) -def lcmm(l): -    return reduce(lcm, l) - - -print((lcmm(arr))) +N = int(eval(input())) +T = [int(eval(input())) for _ in range(N)] +ans = 1 +for t in T: +    ans = lcm(ans, t) +print(ans)