void main()
{
    long n = readln.chomp.to!long;
    long[] t = new long[n];
    foreach (i; 0 .. n)
    {
        t[i] = readln.chomp.to!long;
    }

    long time = t[0];
    foreach (i; 1 .. n)
    {
        long g = gcd(time, t[i]);
        time = time / g * t[i];
    }

    time.writeln;
}

import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.algorithm;
import std.range;
import std.math;
import std.numeric;
import std.container;
import std.typecons;
import std.ascii;
import std.uni;