from fractions import gcd

def lcm(a,b):

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

n = int(eval(input()))

y = 1

for i in range(n):

	x = int(eval(input()))

	y = lcm(x,y)

print (y)
from fractions import gcd

n = int(eval(input()))

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



def lcm(x, y):

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



x = t[0]

for i in t[1:]:

	x = lcm(i,x)

print (x)
from fractions import gcd


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


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

from fractions import gcd

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


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


x = t[0]
for i in t[1:]:
    x = lcm(i, x)
print(x)

- -def lcm(a, b): -    return (a * b) // gcd(a, b) +n = int(eval(input())) +t = [int(eval(input())) for i in range(n)] -n = int(eval(input())) -y = 1 -for i in range(n): -    x = int(eval(input())) -    y = lcm(x, y) -print(y) +def lcm(x, y): +    return (x * y) // gcd(x, y) + + +x = t[0] +for i in t[1:]: +    x = lcm(i, x) +print(x)