from fractions import gcd

def lcm(a,b):

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

n=int(eval(input()))

s=1

for i in range(n):

    t=int(eval(input()))

    s=lcm(s,t)

print(s)
from fractions import gcd

n=int(eval(input()))

s=1

for i in range(n):

    t=int(eval(input()))

    s=s*t//gcd(s,t)

print(s)
from fractions import gcd


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


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

from fractions import gcd

n = int(eval(input()))
s = 1
for i in range(n):
    t = int(eval(input()))
    s = s * t // gcd(s, t)
print(s)

- - -def lcm(a, b): -    return a * b // gcd(a, b) - -    s = lcm(s, t) +    s = s * t // gcd(s, t)