import fractions





def lcm(a, b):

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





def list_lcm(number_list):

    lcm_number = 1

    for j in range(len(number_list)):

        lcm_number = lcm(lcm_number, number_list[j])



    return lcm_number





if __name__ == '__main__':

    number_count = int(eval(input()))

    numbers = []

    for i in range(number_count):

        numbers.append(int(eval(input())))

    print((int(list_lcm(numbers))))

def gcd(a, b):

    while b:

        a, b = b, a % b

    return a





def lcm(a, b):

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





def list_lcm(number_list):

    lcm_number = 1

    for j in range(len(number_list)):

        lcm_number = lcm(lcm_number, number_list[j])



    return lcm_number





if __name__ == '__main__':

    number_count = int(eval(input()))

    numbers = []

    for i in range(number_count):

        numbers.append(int(eval(input())))

    print((int(list_lcm(numbers))))

import fractions


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


def list_lcm(number_list):
    lcm_number = 1
    for j in range(len(number_list)):
        lcm_number = lcm(lcm_number, number_list[j])
    return lcm_number


if __name__ == "__main__":
    number_count = int(eval(input()))
    numbers = []
    for i in range(number_count):
        numbers.append(int(eval(input())))
    print((int(list_lcm(numbers))))

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


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


def list_lcm(number_list):
    lcm_number = 1
    for j in range(len(number_list)):
        lcm_number = lcm(lcm_number, number_list[j])
    return lcm_number


if __name__ == "__main__":
    number_count = int(eval(input()))
    numbers = []
    for i in range(number_count):
        numbers.append(int(eval(input())))
    print((int(list_lcm(numbers))))

-import fractions +def gcd(a, b): +    while b: +        a, b = b, a % b +    return a -    return a * b // fractions.gcd(a, b) +    return a * b // gcd(a, b)