#include <iostream>
using namespace std;

int gcd(int n, int m) {
    int r;
    if (n < m) swap(n, m);
    
    while( m > 0 ){
        r = n % m;
        n = m;
        m = r;
    }
    return n;
}

int main(void){
    int n, x, y;
    cin >> n;
    cin >> x;
    for (int i = 0; i < n - 1; i++) {
        cin >> y;
        x = x * y / gcd(x, y);
    }
    cout << x << endl;;
    return 0;
}

