#include "bits/stdc++.h"
using namespace std;
typedef long long LL;
const LL MOD = 1000000007LL;
LL gcd(LL a, LL b) {
	return b ? gcd(b, a%b) : a;
}
LL lcm(LL a, LL b) {
	return a / gcd(a, b)*b;
}
int main() {
	int n;
	cin >> n;
	LL ans = 1;
	for (int i = 0; i < n; i++) {
		int a;
		cin >> a;
		ans = lcm(ans, a);
	}
	cout << ans << endl;
}
