using namespace std;

template <typename T>
T compute_lcm(T a, T b) {
    T x = a;
    T y = b;
    while (x != y) {
        if (x > y) {
            y += (x - y + b - 1) / b * b;
        } else {
            x += (y - x + a - 1) / a * a;
        }
    }
    return x;
}

#include <iostream>
int main() {
    int n, a;
    unsigned long long x = 1;
    cin >> n;
    for (int i = 0; i < n; ++i) {
        cin >> a;
        x = compute_lcm<unsigned long long>(x, a);
    }
    cout << x << endl;
    return 0;
}