import fractions

from functools import reduce



N = int(eval(input()))

T = list(int(eval(input())) for _ in range(N))





def lcm_base(x, y):

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



def lcm(*numbers):

    return reduce(lcm_base, numbers, 1)



def lcm_list(numbers):

    return reduce(lcm_base, numbers, 1)



print((lcm_list(T)))

import fractions

from functools import reduce



N = int(eval(input()))

T = list(int(eval(input())) for _ in range(N))



def lcm_base(x, y):

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



def lcm_list(numbers):

    return reduce(lcm_base, numbers, 1)



print((lcm_list(T)))

import fractions
from functools import reduce

N = int(eval(input()))
T = list(int(eval(input())) for _ in range(N))


def lcm_base(x, y):
    return (x * y) // fractions.gcd(x, y)


def lcm(*numbers):
    return reduce(lcm_base, numbers, 1)


def lcm_list(numbers):
    return reduce(lcm_base, numbers, 1)


print((lcm_list(T)))

import fractions
from functools import reduce

N = int(eval(input()))
T = list(int(eval(input())) for _ in range(N))


def lcm_base(x, y):
    return (x * y) // fractions.gcd(x, y)


def lcm_list(numbers):
    return reduce(lcm_base, numbers, 1)


print((lcm_list(T)))

-def lcm(*numbers): -    return reduce(lcm_base, numbers, 1) - -