#include <stdio.h>
int f1(int x,int y)
{
	int a,b,c,z;
	a=x;
	b=y;
	while(y)
{
	z=x%y;
	x=y;
	y=z;
}
	c=a*b/x;
	return c;
}

int main()
{
	int i=0,j;
	long long p;
	while(scanf("%d",&j)!=EOF)
    {
    long long  a[100000];
	for(i=0;i<j;i++	)
	{
	scanf("%I64d",&a[i]);
	}
	for(i=0;i<j-1;i++)
	{
	p=f1(a[i],a[i+1]);
	a[i+1]=p;
	}
	printf("%I64d\n",p);
	return 0;
}
}