def gcd(a,b):

    while b!=0:

        tmp = b

        b = a%b

        a = tmp

    return a



def lcm(a,b):

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



N = int(eval(input()))

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

ans = 1

for t in T:

    ans = lcm(ans, t)

print(ans)

def main():

    def gcd(a,b):

        while b!=0:

            a, b = b, a%b

        return a



    def lcm(a,b):

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



    N = int(eval(input()))

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

    ans = 1

    for t in T:

        ans = lcm(ans, t)

    print(ans)



if __name__ == '__main__':

    main()

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


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


N = int(eval(input()))
T = [int(eval(input())) for _ in range(N)]
ans = 1
for t in T:
    ans = lcm(ans, t)
print(ans)

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

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

    N = int(eval(input()))
    T = [int(eval(input())) for _ in range(N)]
    ans = 1
    for t in T:
        ans = lcm(ans, t)
    print(ans)


if __name__ == "__main__":
    main()

-def gcd(a, b): -    while b != 0: -        tmp = b -        b = a % b -        a = tmp -    return a +def main(): +    def gcd(a, b): +        while b != 0: +            a, b = b, a % b +        return a + +    def lcm(a, b): +        return a * b // gcd(a, b) + +    N = int(eval(input())) +    T = [int(eval(input())) for _ in range(N)] +    ans = 1 +    for t in T: +        ans = lcm(ans, t) +    print(ans) -def lcm(a, b): -    return a * b // gcd(a, b) - - -N = int(eval(input())) -T = [int(eval(input())) for _ in range(N)] -ans = 1 -for t in T: -    ans = lcm(ans, t) -print(ans) +if __name__ == "__main__": +    main()