#include<stdio.h>
#define ll long long
ll gcd(ll a,ll b)
{
return b?gcd(b,a%b):a;
}
ll lcm(ll a,ll b)
{
	return a/gcd(a,b)*b;
}
int main()
{int n,i,j;ll sum,str[200];
	while(~scanf("%d",&n)){
 for(i=0;i<n;i++)
	scanf("%d",&str[i]);
	sum=1;
	for(i=0;i<n;i++)
	sum=lcm(sum,str[i]);
	printf("%d\n",sum);
 } 
 return 0;}