#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repd(i,a,b) for (int i = (a); i < (b); i++)
typedef long long ll;

ll gcd(ll a, ll b)//最大公約数
{
  return b != 0 ? gcd(b, a % b) : a;
}


int main(void)
{
    int n, a;
    cin >> n;
    vector<ll> l(n);
    rep(i, n)
    {
        cin >> a;
        l.at(i) = a;
    }
    
    ll LCM = l.at(n-1); 
    rep(i, n-1)
    {
        LCM = LCM * l.at(i) / gcd(LCM, l.at(i));
    }
    cout << LCM << endl;
}

