import std.stdio, std.string, std.conv, std.bigint, std.typecons, std.algorithm, std.array, std.math, std.range, std.functional;

void main() {
    auto N = readln.chomp.to!int;
    BigInt[] times;
    foreach (i; 0..N) {
        times ~= readln.chomp.to!BigInt;
    }
    writeln(times.reduce!lcm);
}

BigInt _gcd(BigInt a, BigInt b) {
    if (b == 0) return a;
    return memoize!_gcd(b, a % b);
}

alias gcd = memoize!_gcd;

BigInt _lcm(BigInt a, BigInt b) {
    return a * b / gcd(a, b);
}

alias lcm = memoize!_lcm;
