import math



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

r=a[0]

for i in range(len(a)):

  r=r*a[i]//math.gcd(r,a[i])

print(r)
import math

n=int(eval(input()));a=[int(eval(input())) for _ in range(n)];r=a[0]

for i in a: r=r*i//math.gcd(r,i)

print(r)
import math

a = [int(eval(input())) for _ in range(int(eval(input())))]
r = a[0]
for i in range(len(a)):
    r = r * a[i] // math.gcd(r, a[i])
print(r)

import math

n = int(eval(input()))
a = [int(eval(input())) for _ in range(n)]
r = a[0]
for i in a:
    r = r * i // math.gcd(r, i)
print(r)

-a = [int(eval(input())) for _ in range(int(eval(input())))] +n = int(eval(input())) +a = [int(eval(input())) for _ in range(n)] -for i in range(len(a)): -    r = r * a[i] // math.gcd(r, a[i]) +for i in a: +    r = r * i // math.gcd(r, i)