"use strict";
    
function getGcm(x, y) {
  x = Math.abs(x);
  y = Math.abs(y);
  while (y) {
    let t = y;
    y = x % y;
    x = t;
  }
  return x;
}

function getLcm(x, y) {
  return (!x || !y) ? 0 : Math.abs((x * y) / getGcm(x, y));
}

const main = arg => {
    arg = arg.trim().split("\n");
    
    const A = parseInt(arg[0].split(" ")[0]);
    const B = parseInt(arg[0].split(" ")[1]);
    
    console.log(getLcm(A, B));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));