from functools import reduce

from fractions import gcd





def find_lcm(a, b):

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





def main():

    n = int(eval(input()))

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

    print((reduce(find_lcm, t)))





if __name__ == '__main__':

    main()



from functools import reduce

from fractions import gcd





def lcm(a, b):

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





def main():

    n = int(eval(input()))

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

    print((reduce(lcm, t)))





if __name__ == '__main__':

    main()



from functools import reduce
from fractions import gcd


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


def main():
    n = int(eval(input()))
    t = [int(eval(input())) for _ in range(n)]
    print((reduce(find_lcm, t)))


if __name__ == "__main__":
    main()

from functools import reduce
from fractions import gcd


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


def main():
    n = int(eval(input()))
    t = [int(eval(input())) for _ in range(n)]
    print((reduce(lcm, t)))


if __name__ == "__main__":
    main()

-def find_lcm(a, b): +def lcm(a, b): -    print((reduce(find_lcm, t))) +    print((reduce(lcm, t)))