#include<iostream>
#include<vector>
using namespace std;

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

long long lcm(long long a, long long b) {
	return a*b / gcd(a, b);
}

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