function Main (input) {
  input = input.split(" ").map(inp => parseInt(inp, 10));
  console.log(gcd(input[0], input[1]));
}
function gcd (a,b) {
  var g = (n, m) => m ? g(m, n % m) : n;
  return a * b / g(a, b);
}

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