#include<stdio.h>
long long s(long long a,long long b)
{  long long x,y,r,k;
  if(a>b)
    {k=a;a=b;b=k;
	}
  x=a;y=b;r=y%x;
   while(r!=0)
   {y=x;x=r;r=y%x;
   }
   return b/x*a;
 } 
int main()
{
	long long n,a[200],i,x,t;
	 scanf("%lld",&n);
	     for(i=0;i<n;i++)
	       scanf("%lld",&a[i]);
	       
	           for(i=0;i<n;i++)
	            {
				  a[i+1]=s(a[i],a[i+1]);
				  if(a[i=1]>=1000000000000000000)
	                 {printf("1000000000000000000");
				       return 0;
				      }	
				}
				printf("%lld",a[n-1]);
				return 0;
}