'use strict'
const Main = (arg) => {
  let input = arg.trim().split('\n');
  let A = input[0].split(' ').map(Number)[0];
  let B = input[0].split(' ').map(Number)[1];

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

  console.log(lcm(A, B));

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