#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;
	long long sum,str[110];
	while(~scanf("%d",&n))
	{sum=1;
	for(i=0;i<n;i++){
	scanf("%lld",&str[i]);
	sum=lcm(sum,str[i]);}
	printf("%lld\n",sum);
}return 0;}