import std.stdio, std.string, std.array, std.conv, std.numeric;

int arrayLCM(int[] x) {
    while (x.length > 1) {
        int a = x[0];
        int b = x[1];
        int r = gcd(a, b);
        x[1] = a * b / r;
        x = x[1..$];
    }
    return x[0];
}

void main() {
    int n = readln.chomp.to!int;
    int[] a = readln.chomp.split.to!(int[]);
    arrayLCM(a).writeln;
}
