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

typedef long long ll;
/*
ll gcd(ll a, ll b){
	  return (a%b==0)? b: gcd(b,a%b);
}
ll lcm(ll a, ll b){
	  return a/gcd(a,b)*b;
	  }*/
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;
	  int a[n];
	  for(int i=0; i<n; i++) cin >> a[i];

	  int ans = a[0];
	  for(int i=0; i<n; i++) ans = lcm(ans,a[i]);
	  cout << ans << endl;
	  

}