#include <bits/stdc++.h>

using namespace std;
int num[20];

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

int main() {
	int n;
	cin >> n;
	for (int i = 1; i <= n; i++) cin >> num[i];
	int ans = num[1];
	for (int i = 2; i <= n; i++) {
		ans = ans * num[i] / gcd(ans, num[i]);
	}
	cout << ans<<endl;
}
