#include <bits/stdc++.h>
using namespace std;
#define ll long long 
ll gcd(ll x,ll y)
{
		return x>0?gcd(y%x,x):y;
}
int main()
{
	
	int t;
	cin>>t;
	ll m=1;
	while(t--)
	{
		ll l;
		cin>>l;			
		m=((m/gcd(m,l)*l));
	}
	cout<<m;
	return 0;
	
}