function Main(input) {
  var inputList = input.split("\n");
  var N = inputList[0].split(" ").map(Number)[0];
  var timeList = inputList
    .slice(1)
    .filter(v => v !== "");

  var ret;
  var n = 1;
  for (var i = 0; i < N; i++) {
    n = lcm(n, timeList[i]);
  }
  ret = n;

  console.log(ret);

  function gcd(a, b){
    if(b != 0)
      return gcd(b, a%b);
    else
      return a;
  }

  function lcm(a, b){
    return a / gcd(a, b) * b ;
  }
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'));