from fractions import gcd



def lcm(a, b):

    if a == 0 or b == 0:

        return 0

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

  

def solve():

    n = int(eval(input()))

    tl = [int(eval(input())) for _ in range(n)]

    ans = tl[0]

    for elem in tl[1:]:

        ans = lcm(ans, elem)

    print(ans)

 

if __name__=="__main__":

    solve()
import sys

if sys.version_info < (3, 5):

    from fractions import gcd

else:

    from math import gcd



def lcm(a, b):

    if a == 0 or b == 0:

        return 0

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



def solve():

    n = int(eval(input()))

    tl = [int(eval(input())) for _ in range(n)]

    ans = tl[0]

    for elem in tl[1:]:

        ans = lcm(ans, elem)

    print(ans)

 

if __name__=="__main__":

    solve()
from fractions import gcd


def lcm(a, b):
    if a == 0 or b == 0:
        return 0
    return int(a * b // gcd(a, b))


def solve():
    n = int(eval(input()))
    tl = [int(eval(input())) for _ in range(n)]
    ans = tl[0]
    for elem in tl[1:]:
        ans = lcm(ans, elem)
    print(ans)


if __name__ == "__main__":
    solve()

import sys

if sys.version_info < (3, 5):
    from fractions import gcd
else:
    from math import gcd


def lcm(a, b):
    if a == 0 or b == 0:
        return 0
    return int(a * b // gcd(a, b))


def solve():
    n = int(eval(input()))
    tl = [int(eval(input())) for _ in range(n)]
    ans = tl[0]
    for elem in tl[1:]:
        ans = lcm(ans, elem)
    print(ans)


if __name__ == "__main__":
    solve()

-from fractions import gcd +import sys + +if sys.version_info < (3, 5): +    from fractions import gcd +else: +    from math import gcd