#include <iostream>
using namespace std;

int lcm(int a, int b){
	int v0 = a, v1 = b, v2;
	while((v2 = v0 % v1) != 0){
		v0 = v1;
		v1 = v2;
	}
	return a*b / v1;
}

int main(){
    int n, a[1000], ans = 1;
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>a[i];
        ans = lcm(ans,a[i]);
    }
    cout<<ans<<endl;
	return 0;
}
