#include <iostream>
#include <vector>

using namespace std;

int gcd(int a, int b) {
	if(b == 0) {
		return a;
	}
	return gcd(b, a % b);
}

int main() {
	int n;
	vector<int> a;
	cin >> n;
	for(int i=0;i<n;i++) {
		int temp;
		cin >> temp;
		a.push_back(temp);
	}

	int lcm = 1;
	for(int i=0;i<n-1;i++) {
		if(lcm % a[i] == 0) continue;
		int g = gcd(a[i], lcm);
		lcm = a[i]*lcm/g;
	}
	if(lcm % a[n-1] != 0) {
		int g = gcd(lcm, a[n-1]);
		lcm = lcm*a[n-1]/g;
	}

	cout << lcm << endl;
	
	return 0;
}