import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.stdio;
import std.string;
import std.range;

int readint() {
    return readln.chomp.to!int;
}

int[] readints() {
    return readln.split.map!(to!int).array;
}

long gcd(long a, long b) {
    if (b == 0)
        return a;
    return gcd(b, a % b);
}

long lcm(long a, long b) {
    return a / gcd(a, b) * b;
}

long calc(long[] xs) {
    long ans = xs[0];
    for (int i = 1; i < xs.length; i++) {
        ans = lcm(ans, xs[i]);
    }
    return ans;
}

void main() {
    int n = readint();
    long[] xs;
    for (int i = 0; i < n; i++) {
        xs ~= readln.chomp.to!long;
    }

    writeln(calc(xs));
}
