#include<stdio.h>
int main()
{
	int n;scanf("%d",&n);
	long long int a,b,a1,b1,y;
	scanf("%lld",&a);
	n-=1;
	while(n--)
	{
	    scanf("%lld",&b);
        a1=a;b1=b;
        while(a1%b1)
        {
        	if(a1%b1==0) ;
        	else
        	{
        		y=a1%b1;
        		a1=b1;
        		b1=y;
				a=a/y*b;
        	}
        }
       
    }
    printf("%lld",a);
}