#include <stdio.h>
#define ll long long
ll gcd(ll a,ll b)
{
return b?gcd(b,a%b):a;
}
ll lcm(ll a,ll b)
{
return a/gcd(a,b)*b;
}

int main(void)
{
ll line,i;
ll a,b;

scanf("%d",&line);
scanf("%d",&a);
for(i=1;i<line;i++)  
{
scanf("%d",&b);
a=lcm(a,b);
}
printf("%d\n",a);
return 0;
}