#include<bits/stdc++.h>
using namespace std;

long gcd(long m,long n){
  if(!n)return m;
  return gcd(n,m%n);
}
long lcm(long m,long n){
  if(!(m%n&&n%m))return max(m,n);
  return m/gcd(m,n)*n;
}
int main(){
  long n,t=1,c;
  cin>>n;
  for(long i=0;i<n;++i)t=lcm(t,(cin>>c,c));
  cout<<t;
  return 0;
}