#include<iostream>
#include<stdio.h>

using namespace std;

int main()
{
	int a[10] = {0};
	int n, lcm;
	cin >> n;
	for (int i = 0; i < n; i++)
	{
		cin >> a[i];
	}
	lcm = a[0];
	for (int i = 0; i < n; i++)
	{
		int A = lcm, B = a[i];
		while (1)
		{
			if (A < B)swap(A, B);
			A -= (A / B)*B;
			if (A == 0)break;
		}
		lcm = (lcm*a[i]) / B;
	}
	cout << lcm << endl;
	return 0;
}