#include<cstdio>  
#include<algorithm>  
using namespace std;  
   
int main()  
{  
    int N;  
    long long t;  
    scanf("%d",&N);  
    scanf("%lld",&t);  
    long long gb = t;  
    for(int i = 1;i < N;i ++)  
    {  
        scanf("%lld",&t);  
        long long a = max(gb,t);  
        long long b = min(gb,t);  
        while(b)  
        {  
            long long c = a%b;  
            a = b;  
            b = c;  
        }  
        gb = gb/a*t; 
    }  
    printf("%lld\n",gb);  
}  