#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
long long ans,t;
int n;
long long gcd(long long x,long long y){
	return !y?x:gcd(y,x%y);
}
int main(){
	scanf("%d",&n);
	ans=1;
	while (n--){
		cin>>t;
		ans=ans/gcd(ans,t)*t;
	}
	cout<<ans;
}