"use strict";

main(require("fs").readFileSync("/dev/stdin", "utf8"));

function main(input) {
  const clocks = input.split("\n").map(Number);
  clocks.shift();

  // 降順にソート
  clocks.sort((a, b) => a < b ? 1 : a > b ? -1 : 0);

  const ans = clocks.reduce((p, c) => (p * c) / gcd(p, c));
  console.log(ans);
}

function gcd(x, y) {
  if (y === 0) {
    return x;
  }
  return gcd(y, x % y);
}
