import std.stdio;
import std.algorithm;
import std.conv;
import std.numeric;
import std.math;
import std.string;

void main()
{
	auto n = to!int(chomp(readln()));
	long[] t;
	foreach (i; 0..n)
	{
		t ~= to!long(chomp(readln()));
	}
	
	long lcm(long a, long b)
	{
		if (a < b)
		{
			auto tmp = a;
			a = b;
			b = tmp;
		}

		auto r = a % b;
		long x = a, y = b;
		while (r != 0)
		{
			x = y;
			y = r;
			r = x % y;
		}

		return b / y * a;
	}

	auto result = t[0];
	foreach (e; t[1..$])
	{
		result = lcm(result, e);
	}
	
	writeln(result);
	stdout.flush();
}