function Main(input) {
  const max = Math.max(input[0], input[1]);
  const min = Math.min(input[0], input[1]);

  var okashi;
  for (var i = 1; i < 99; i++) {
    okashi = max * i;

    if (okashi % min === 0) {
      console.log(okashi);
      return;
    }
  }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(" ").map(Number));