function lcm(a,b) {
    var g = (n, m) => m ? g(m, n % m) : n
    return a * b / g(a, b)
}

function Main(input) {
  input = input.trim();
  input = input.split(" ")
  console.log(lcm(input[1],input[0])) //72
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));