#include <bits/stdc++.h>
using namespace std;

int n;
vector<int> a;
long long gcd(long long x, long long y){
	while(x % y != 0){
		long long r = x % y;
		x = y;
		y = r;
	}
	return y;
}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	cin >> n;
	a.resize(n);
	for(auto &i:a) cin >> i;
	long long ans = 1;
	for(auto i:a) ans = ans * i / gcd((long long)ans, (long long)i);
	cout << ans << "\n";
}
