#include <iostream>
#include <cmath>
using namespace std;
int gcd(int a, int b) {
  if (a == 0 || b == 0) return 0;
  while (a != b)
    if (a > b) a -= b;
    else b -= a;
  return a;
}
int main() {
  int n, a, b = 1;
  cin >> n;
  while (n--) {
    cin >> a;
    b = (a * b) / gcd(a, b);
  }
  cout << b << endl;
}